File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ def app
1717 end
1818
1919 module ClassMethods
20+ EMPTY_ARRAY = [ ] . freeze
2021
2122 include ::RSpec ::Core ::DSL
2223
2324 def honour_pactfile pact_uri , pact_json , options
2425 Pact . configuration . output_stream . puts "INFO: Reading pact at #{ pact_uri } "
25- Pact . configuration . output_stream . puts ( "DEBUG: #{ pact_uri . metadata [ :inclusion_reason ] } " ) if pact_uri . metadata [ :inclusion_reason ]
26- Pact . configuration . output_stream . puts ( "DEBUG: #{ pact_uri . metadata [ :pending_reason ] } " ) if pact_uri . metadata [ :pending_reason ]
26+ ( pact_uri . metadata [ :notices ] || EMPTY_ARRAY ) . each do | notice |
27+ Pact . configuration . output_stream . puts ( "DEBUG: #{ notice } " )
28+ end
2729 Pact . configuration . output_stream . puts "DEBUG: Filtering interactions by: #{ options [ :criteria ] } " if options [ :criteria ] && options [ :criteria ] . any?
2830 consumer_contract = Pact ::ConsumerContract . from_json ( pact_json )
2931 suffix = pact_uri . metadata [ :pending ] ? " [PENDING]" : ""
You can’t perform that action at this time.
0 commit comments