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.65.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.64.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.63.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.62.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.61.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.60.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.60.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.59.2 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.59.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.59.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.58.3 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.58.2 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.58.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.57.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.56.1 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.56.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.55.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.54.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.53.0 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb
pact_broker-2.52.2 spec/lib/pact_broker/webhooks/execution_configuration_spec.rb