Skip to content

Commit

Permalink
(PDK-1108) Use idiomatic rspec-mocks
Browse files Browse the repository at this point in the history
This commit updates the tests to use the anything matchcer instead of Object as
per recommended practice in rspec-mocks.
  • Loading branch information
glennsarti committed Mar 4, 2020
1 parent 9364cde commit d9458b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/pdk/cli/set/config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def project_config

RSpec.shared_examples 'a saved setting' do |setting_name, expected_value, force = nil|
it 'saves the setting' do
expect(pdk_config).to receive(:set).with(setting_name, Object, force: force).and_call_original
expect(pdk_config).to receive(:set).with(setting_name, anything, force: force).and_call_original
expect(run).to eq(0)
expect(pdk_config.get(setting_name)).to eq(expected_value)
end
Expand Down

0 comments on commit d9458b1

Please sign in to comment.