Skip to content

Commit

Permalink
chore: fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jul 25, 2023
1 parent 2298851 commit 43ad63b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/pact_broker/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def override_runtime_configuration!(overrides)
valid_overrides, invalid_overrides = identify_valid_and_invalid_configuration_overrides(new_runtime_configuration, overrides)

if logger.debug?
logger.debug("Overridding runtime configuration", overrides: valid_overrides, ignoring: invalid_overrides)
logger.debug("Overriding runtime configuration", overrides: valid_overrides, ignoring: invalid_overrides)
end

valid_overrides.each do | key, value |
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/pact_broker/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module PactBroker

it "logs the overrides at debug level" do
allow(config).to receive(:logger).and_return(logger)
expect(logger).to receive(:debug).with("Overridding runtime configuration", hash_including(overrides: { disable_ssl_verification: true }))
expect(logger).to receive(:debug).with("Overriding runtime configuration", hash_including(overrides: { disable_ssl_verification: true }))
config.override_runtime_configuration!(disable_ssl_verification: "true")
end

Expand All @@ -58,7 +58,7 @@ module PactBroker
context "when the specified runtime attribute does not exist" do
it "logs that it has ignored those attributes" do
allow(config).to receive(:logger).and_return(logger)
expect(logger).to receive(:debug).with("Overridding runtime configuration", hash_including(ignoring: { no_existy: true }))
expect(logger).to receive(:debug).with("Overriding runtime configuration", hash_including(ignoring: { no_existy: true }))
config.override_runtime_configuration!(no_existy: "true")
end
end
Expand Down

0 comments on commit 43ad63b

Please sign in to comment.