Skip to content

Commit 31192d0

Browse files
committed
feat(publish test results): only publish for rspec 3
1 parent 0c56752 commit 31192d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/pact/provider/pact_spec_runner.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ def configure_rspec
6262
config.output_stream = Pact.configuration.output_stream
6363
end
6464

65-
::RSpec.configuration.add_formatter Pact::Provider::RSpec::PactBrokerFormatter, StringIO.new
65+
Pact::RSpec.with_rspec_3 do
66+
::RSpec.configuration.add_formatter Pact::Provider::RSpec::PactBrokerFormatter, StringIO.new
67+
end
6668

6769
if options[:format]
6870
::RSpec.configuration.add_formatter options[:format]

0 commit comments

Comments
 (0)