Skip to content

Commit

Permalink
feat(publish test results): only publish for rspec 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 13, 2017
1 parent 0c56752 commit 31192d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pact/provider/pact_spec_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def configure_rspec
config.output_stream = Pact.configuration.output_stream
end

::RSpec.configuration.add_formatter Pact::Provider::RSpec::PactBrokerFormatter, StringIO.new
Pact::RSpec.with_rspec_3 do
::RSpec.configuration.add_formatter Pact::Provider::RSpec::PactBrokerFormatter, StringIO.new
end

if options[:format]
::RSpec.configuration.add_formatter options[:format]
Expand Down

0 comments on commit 31192d0

Please sign in to comment.