pact 1.22.0 → 1.22.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/pact/provider/rspec.rb +3 -3
- data/lib/pact/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccd9af83fa9ba1a3d2171550929317fbfa97678c
|
4
|
+
data.tar.gz: 6eaa5e73f166c832a419b9e1e723e433bb10903b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76f38cb8c1fadd053fb68c46246bb188a610fa9296ddc6b959bf9f55ce56fa7348620219362c252a2d1bf2e95baa97848d6b64a5241eb7200097fc54056d59d2
|
7
|
+
data.tar.gz: 04d8b7f57d254b2f95bf711903866fc24b02c7e551e9886988ff83621cfa9320e1f70d987df98a3ee6eee0adfb2d25c0fbecac90faa7cc196285ff949af0ec49
|
data/CHANGELOG.md
CHANGED
data/lib/pact/provider/rspec.rb
CHANGED
@@ -108,7 +108,7 @@ module Pact
|
|
108
108
|
include Pact::RSpec::Matchers
|
109
109
|
extend Pact::Matchers::Messages
|
110
110
|
|
111
|
-
let(:expected_content) { expected_response.body[:content] }
|
111
|
+
let(:expected_content) { expected_response.body[:content].as_json }
|
112
112
|
let(:response) { interaction_context.last_response }
|
113
113
|
let(:differ) { Pact.configuration.body_differ_for_content_type diff_content_type }
|
114
114
|
let(:diff_formatter) { Pact.configuration.diff_formatter_for_content_type diff_content_type }
|
@@ -117,11 +117,11 @@ module Pact
|
|
117
117
|
let(:response_body) { parse_body_from_response(response) }
|
118
118
|
let(:actual_content) { response_body['content'] }
|
119
119
|
|
120
|
-
it "has matching content" do
|
120
|
+
it "has matching content" do | example |
|
121
121
|
if response.status != 200
|
122
122
|
raise "An error was raised while verifying the message. The response body is: #{response.body}"
|
123
123
|
end
|
124
|
-
expect(actual_content).to match_term expected_content, diff_options
|
124
|
+
expect(actual_content).to match_term expected_content, diff_options, example
|
125
125
|
end
|
126
126
|
end
|
127
127
|
|
data/lib/pact/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pact
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.22.
|
4
|
+
version: 1.22.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Fraser
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2018-03-
|
15
|
+
date: 2018-03-24 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: randexp
|