lib/pact/cli/run_pact_verification.rb in pact-1.16.1 vs lib/pact/cli/run_pact_verification.rb in pact-1.17.0

- old
+ new

@@ -25,12 +25,13 @@ private def initialize_rspec # With RSpec3, if the pact_helper loads a library that adds its own formatter before we set one, # we will get a ProgressFormatter too, and get little dots sprinkled throughout our output. + # Load a NilFormatter here to prevent that. require 'pact/rspec' - ::RSpec.configuration.add_formatter Pact::RSpec.formatter_class + ::RSpec.configuration.add_formatter Pact::RSpec.formatter_class.const_get('NilFormatter') end def setup_load_path require 'pact/provider/pact_spec_runner' lib = File.join(Dir.pwd, "lib") # Assume we are running from within the project root. RSpec is smarter about this. @@ -67,10 +68,11 @@ end def pact_spec_options { full_backtrace: options[:backtrace], - criteria: SpecCriteria.call(options) + criteria: SpecCriteria.call(options), + format: options[:format] } end end end