Sha256: 61b734be75a2ee07d664154d2bfb55a0f8664cc3541061a40c63c43759a352fb

Contents?: true

Size: 625 Bytes

Versions: 63

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

63 entries across 63 versions & 1 rubygems

Version Path
pact_broker-2.79.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.79.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.78.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.78.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.77.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.76.2 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.76.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.76.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.75.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.74.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.74.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.73.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.72.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.71.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.70.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.69.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.68.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.68.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.67.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.66.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb