Sha256: 4a76b64d56e268794b75ed7cee2c3f1b6a92f242e15bd19cb029d0be47b2d012

Contents?: true

Size: 625 Bytes

Versions: 12

Compression:

Stored size: 625 Bytes

Contents

require "pact_broker/webhooks/execution_configuration"

module PactBroker
  module Webhooks
    describe ExecutionConfiguration do
      subject { ExecutionConfiguration.new }

      it "returns a new object with the updated value" do
        expect(subject.with_show_response(true)[:logging_options][:show_response]).to eq true
        expect(subject.with_show_response(false)[:logging_options][:show_response]).to eq false
      end

      it "deep merges webhook context" do
        expect(subject.with_webhook_context(a: 1, b: 1).with_webhook_context(b: 2)[:webhook_context]).to eq a: 1, b: 2
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.89.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.89.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.88.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.87.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.86.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.85.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.85.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.84.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.83.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.82.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.81.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.80.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb