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