pact 1.55.3 → 1.55.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/pact/provider/rspec.rb +4 -3
- data/lib/pact/provider/rspec/formatter_rspec_3.rb +1 -0
- data/lib/pact/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5df3588ab530c1daf855cfe6277e5753d8ca788066951f3e08ef181af615b1d7
|
|
4
|
+
data.tar.gz: f13b6198bd1e1383a4dd978ca77bcdc65ee1a60498be14e17bb19ce1622274f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 476546bb221362d55c77df417d04a9f00a69bedc042ab6aabc059d498dc094f24f810ec25ea3f167ad77e366c4d8fd8d95b473d2d8d74ca5a58027d9d03e0e00
|
|
7
|
+
data.tar.gz: 500c176acb2a0f3e4b611b373afc0a868af0ba3bfa8d2082c4e192ffe00b80a4a63a11cadd408d19c28105091b73961c09ce2193d47705a3355b870fa9f777bf
|
data/CHANGELOG.md
CHANGED
data/lib/pact/provider/rspec.rb
CHANGED
|
@@ -26,8 +26,10 @@ module Pact
|
|
|
26
26
|
Pact.configuration.output_stream.puts "INFO: Reading pact at #{pact_uri}"
|
|
27
27
|
consumer_contract = Pact::ConsumerContract.from_json(pact_json)
|
|
28
28
|
suffix = pact_uri.metadata[:pending] ? " [PENDING]": ""
|
|
29
|
+
example_group_description = "Verifying a pact between #{consumer_contract.consumer.name} and #{consumer_contract.provider.name}#{suffix}"
|
|
30
|
+
example_group_metadata = { pactfile_uri: pact_uri, pact_criteria: options[:criteria] }
|
|
29
31
|
|
|
30
|
-
::RSpec.describe
|
|
32
|
+
::RSpec.describe example_group_description, example_group_metadata do
|
|
31
33
|
honour_consumer_contract consumer_contract, options.merge(
|
|
32
34
|
pact_json: pact_json,
|
|
33
35
|
pact_uri: pact_uri,
|
|
@@ -90,8 +92,7 @@ module Pact
|
|
|
90
92
|
pact_uri: options[:pact_uri],
|
|
91
93
|
pact_source: options[:pact_source],
|
|
92
94
|
pact_ignore_failures: options[:pact_source].pending? || options[:ignore_failures],
|
|
93
|
-
pact_consumer_contract: options[:consumer_contract]
|
|
94
|
-
pact_criteria: options[:criteria]
|
|
95
|
+
pact_consumer_contract: options[:consumer_contract]
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
describe description_for(interaction), metadata do
|
|
@@ -25,6 +25,7 @@ module Pact
|
|
|
25
25
|
C = ::Term::ANSIColor
|
|
26
26
|
|
|
27
27
|
def example_group_started(notification)
|
|
28
|
+
# This is the metadata on the top level "Verifying a pact between X and Y" describe block
|
|
28
29
|
if @group_level == 0
|
|
29
30
|
Pact.configuration.output_stream.puts
|
|
30
31
|
pact_uri = notification.group.metadata[:pactfile_uri]
|
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.55.
|
|
4
|
+
version: 1.55.4
|
|
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: 2020-09
|
|
15
|
+
date: 2020-10-09 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: rspec
|