Sha256: 57aeeda5a536fac254b32bc705aa9c2c9adb27a9cc71de3e1e83dfaea6cf12f0

Contents?: true

Size: 389 Bytes

Versions: 12

Compression:

Stored size: 389 Bytes

Contents

require "rack/pact_broker/add_pact_broker_version_header"

module Rack
  module PactBroker
    describe AddPactBrokerVersionHeader do

      let(:app) { AddPactBrokerVersionHeader.new(->(_env){[200, {}, []]}) }

      it "adds the PactBroker version as a header" do
        get "/"
        expect(last_response.headers["X-Pact-Broker-Version"]).to match(/\d/)
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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