lib/pact/provider/rspec/pact_broker_formatter.rb in pact-1.65.0 vs lib/pact/provider/rspec/pact_broker_formatter.rb in pact-1.65.1
- old
+ new
@@ -1,8 +1,8 @@
require 'rspec/core/formatters'
require 'pact/provider/verification_results/publish_all'
-require 'term/ansicolor'
+require 'rainbow'
require 'pact/matchers/extract_diff_messages'
module Pact
module Provider
module RSpec
@@ -41,10 +41,10 @@
pact_interaction: example.metadata[:pact_interaction]
}.tap do |hash|
if example.exception
hash[:exception] = {
class: example.exception.class.name,
- message: ::Term::ANSIColor.uncolor(example.exception.message)
+ message: "\e[0m#{example.exception.message}"
}
end
if example.metadata[:pact_actual_status]
hash[:actualStatus] = example.metadata[:pact_actual_status]