Sha256: 8f61d23c7edede7e325ac366d890d670ae02d68735d8a5d1d632aee376517224
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 Bytes
Contents
require 'spec_helper' require 'pact_broker/pacts/create_formatted_diff' require 'pact_broker/pacts/repository' module PactBroker module Pacts describe CreateFormattedDiff do describe ".call" do let(:pact_content_version_1) do hash = load_json_fixture('consumer-provider.json') hash['interactions'].first['request']['method'] = 'post' hash.to_json end let(:pact_content_version_2) { load_fixture('consumer-provider.json') } subject { CreateFormattedDiff.call(pact_content_version_2, pact_content_version_1) } it "returns the formatted diff" do puts subject expect(subject).to include 'interactions' expect(subject).to match /\-.*post/ expect(subject).to match /\+.*get/ expect(subject).to_not include 'Key' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-1.4.0 | spec/lib/pact_broker/pacts/create_formatted_diff_spec.rb |