Skip to content

Commit fea6639

Browse files
committed
rubocop safe corrections
1 parent 0fdca6d commit fea6639

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/unit/puppetlabs_spec_helper/puppetlabs_spec/puppet_internals_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
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

@@ -60,12 +60,12 @@
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
7171
end

0 commit comments

Comments
 (0)