Sha256: e96044f403b68a52ba2e2dc086361eed177515993c0e52a49e4284cfa2e3b671

Contents?: true

Size: 757 Bytes

Versions: 9

Compression:

Stored size: 757 Bytes

Contents

require 'pact_broker/api/decorators/verifiable_pact_decorator'

module PactBroker
  module Api
    module Decorators
      describe VerifiablePactDecorator do

        let(:expected_hash) do
          {
            "pending" => true,
            "_links" => {
              "self" => "http://pact"
            }
          }
        end

        let(:decorator) { VerifiablePactDecorator.new(pact) }
        let(:pact) { double('pact') }
        let(:json) { decorator.to_json(options) }
        let(:options) { { user_options: { base_url: 'http://example.org' } } }

        subject { JSON.parse(json) }

        it "generates a matching hash", pending: true do
          expect(subject).to match_pact(expected_hash)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pact_broker-2.38.1 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.38.0 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.37.0 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.36.1 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.36.0 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.35.0 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.34.0 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.33.0 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb
pact_broker-2.32.0 spec/lib/pact_broker/api/decorators/verifiable_pact_decorator_spec.rb