File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spec/unit/puppetlabs_spec_helper/puppetlabs_spec Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3232 let ( :node ) { described_class . node }
3333
3434 it 'can have a defined node' do
35- expect ( described_class . compiler ( node : node ) . node ) . to be node
35+ expect ( described_class . compiler ( node :) . node ) . to be node
3636 end
3737 end
3838
6060 it 'accepts an injected scope' do
6161 expect ( Puppet ::Parser ::Functions ) . to receive ( :function ) . with ( 'my_func' ) . and_return ( true )
6262 expect ( scope ) . to receive ( :method ) . with ( :function_my_func ) . and_return ( :fake_method )
63- expect ( described_class . function_method ( 'my_func' , scope : scope ) ) . to eq ( :fake_method )
63+ expect ( described_class . function_method ( 'my_func' , scope :) ) . to eq ( :fake_method )
6464 end
6565
6666 it "returns nil if the function doesn't exist" do
6767 expect ( Puppet ::Parser ::Functions ) . to receive ( :function ) . with ( 'my_func' ) . and_return ( false )
68- expect ( described_class . function_method ( 'my_func' , scope : scope ) ) . to be_nil
68+ expect ( described_class . function_method ( 'my_func' , scope :) ) . to be_nil
6969 end
7070 end
7171end
You can’t perform that action at this time.
0 commit comments