Skip to content

Commit

Permalink
Merge pull request #1304 from puppetlabs/maint-rubocop_fix
Browse files Browse the repository at this point in the history
(maint) - rubocop fixes
  • Loading branch information
LukasAud authored Jan 9, 2024
2 parents 4270a2d + e273c49 commit 001f624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def run
option_keys << :cwd
option_keys << :run_as

Specinfra::Configuration.singleton_class.send(:remove_const, :VALID_OPTIONS_KEYS)
Specinfra::Configuration.singleton_class.send(:remove_const, :VALID_OPTIONS_KEYS) # rubocop:disable RSpec/RemoveConst
Specinfra::Configuration.singleton_class.const_set(:VALID_OPTIONS_KEYS, option_keys.freeze)
RSpec.configuration.add_setting :cwd
RSpec.configuration.add_setting :run_as
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/pdk/config/namespace_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def spec_simple_validator
expect([config.fetch(:foo, 'default'), config.fetch('foo', 'default')]).to all(eq('bar'))
end

it 'will return the specified default value for unknown values' do
it 'returns the specified default value for unknown values' do
expect([config.fetch(:missing, 'default'), config.fetch('missing', 'default')]).to all(eq('default'))
end

Expand Down

0 comments on commit 001f624

Please sign in to comment.