Sha256: a17e34409b44fb199018012cfa68de3fd96caeb9bc6a2e59ad2e581e30e0ba84
Contents?: true
Size: 768 Bytes
Versions: 22
Compression:
Stored size: 768 Bytes
Contents
require 'pact/consumer_contract/http_consumer_contract_parser' module Pact describe HttpConsumerContractParser do describe "#call integration test" do subject { HttpConsumerContractParser.new.call(pact_hash) } context "with a v2 pact" do let(:pact_hash) { load_json_fixture('pact-http-v2.json') } it "correctly parses the pact" do expect(subject.interactions.first.response.headers['Content-Type']).to be_a(Pact::Term) end end context "with a v3 pact" do let(:pact_hash) { load_json_fixture('pact-http-v3.json') } it "correctly parses the pact" do expect(subject.interactions.first.response.body['foo']).to be_a(Pact::SomethingLike) end end end end end
Version data entries
22 entries across 22 versions & 1 rubygems
Version | Path |
---|---|
pact-support-1.5.1 | spec/lib/pact/consumer_contract/http_consumer_contract_parser_spec.rb |
pact-support-1.5.0 | spec/lib/pact/consumer_contract/http_consumer_contract_parser_spec.rb |