Skip to content

Commit

Permalink
feat(publish test results): remove ansi colours from error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Nov 13, 2017
1 parent 31192d0 commit 4416d04
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pact/provider/rspec/pact_broker_formatter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'rspec/core/formatters'
require 'pact/provider/verification_results/publish_all'
require 'term/ansicolor'

module Pact
module Provider
Expand Down Expand Up @@ -32,7 +33,7 @@ def stop(notification)
if e
hash[:exception] = {
class: e.class.name,
message: e.message
message: ::Term::ANSIColor.uncolor(e.message)
}
end
end
Expand Down

0 comments on commit 4416d04

Please sign in to comment.