pact-support 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/pact/consumer_contract/interaction.rb +6 -3
- data/lib/pact/matchers/index_not_found.rb +1 -1
- data/lib/pact/matchers/list_diff_formatter.rb +2 -2
- data/lib/pact/matchers/matchers.rb +42 -34
- data/lib/pact/matchers/{no_diff_indicator.rb → no_diff_at_index.rb} +3 -3
- data/lib/pact/matchers/unexpected_index.rb +1 -1
- data/lib/pact/matchers/unix_diff_formatter.rb +23 -5
- data/lib/pact/matching_rules.rb +17 -0
- data/lib/pact/matching_rules/extract.rb +64 -0
- data/lib/pact/matching_rules/merge.rb +80 -0
- data/lib/pact/support/version.rb +1 -1
- data/lib/pact/term.rb +1 -1
- data/spec/fixtures/interaction-with-matching-rules.json +27 -0
- data/spec/integration/matching_rules_extract_and_merge_spec.rb +98 -0
- data/spec/lib/pact/consumer_contract/interaction_spec.rb +14 -0
- data/spec/lib/pact/matchers/list_diff_formatter_spec.rb +2 -2
- data/spec/lib/pact/matchers/matchers_spec.rb +9 -8
- data/spec/lib/pact/matchers/no_diff_at_index_spec.rb +15 -0
- data/spec/lib/pact/matchers/unix_diff_formatter_spec.rb +15 -14
- data/spec/lib/pact/matching_rules/extract_spec.rb +105 -0
- data/spec/lib/pact/matching_rules/merge_spec.rb +148 -0
- data/spec/support/spec_support.rb +9 -0
- metadata +51 -39
- data/spec/lib/pact/matchers/no_diff_indicator_spec.rb +0 -15
@@ -1,15 +0,0 @@
|
|
1
|
-
require 'pact/matchers/no_diff_indicator'
|
2
|
-
|
3
|
-
module Pact
|
4
|
-
module Matchers
|
5
|
-
describe NoDiffIndicator do
|
6
|
-
|
7
|
-
describe "#to_json" do
|
8
|
-
it "returns a json string" do
|
9
|
-
expect(NoDiffIndicator.new.to_json).to eq '"no difference here!"'
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
end
|
14
|
-
end
|
15
|
-
end
|