diff --git a/lib/pact_broker/configuration.rb b/lib/pact_broker/configuration.rb index 9bb19ecd6..d498a169a 100644 --- a/lib/pact_broker/configuration.rb +++ b/lib/pact_broker/configuration.rb @@ -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 | diff --git a/spec/lib/pact_broker/configuration_spec.rb b/spec/lib/pact_broker/configuration_spec.rb index 665fdbbf9..6fc99a9fd 100644 --- a/spec/lib/pact_broker/configuration_spec.rb +++ b/spec/lib/pact_broker/configuration_spec.rb @@ -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 @@ -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