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 32
32
let ( :node ) { described_class . node }
33
33
34
34
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
36
36
end
37
37
end
38
38
60
60
it 'accepts an injected scope' do
61
61
expect ( Puppet ::Parser ::Functions ) . to receive ( :function ) . with ( 'my_func' ) . and_return ( true )
62
62
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 )
64
64
end
65
65
66
66
it "returns nil if the function doesn't exist" do
67
67
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
69
69
end
70
70
end
71
71
end
You can’t perform that action at this time.
0 commit comments