lib/pact/cli/run_pact_verification.rb in pact-1.55.5 vs lib/pact/cli/run_pact_verification.rb in pact-1.55.6
- old
+ new
@@ -25,9 +25,10 @@
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 'rspec'
require 'pact/rspec'
::RSpec.configuration.add_formatter Pact::RSpec.formatter_class.const_get('NilFormatter')
end
def setup_load_path