lib/pact/pact_task_helper.rb in pact-1.0.4 vs lib/pact/pact_task_helper.rb in pact-1.0.5
- old
+ new
@@ -1,7 +1,13 @@
module PactTaskHelper
def failure_message
- "\n* * * * * * * * * * * * * * * * * * *\n" +
- "Provider did not honour pact file.\nSee\n * #{Pact.configuration.log_path}\n * #{Pact.configuration.tmp_dir}\nfor logs and pact files." +
- "\n* * * * * * * * * * * * * * * * * * *\n\n"
+ redify(
+ "\n* * * * * * * * * * * * * * * * * * *\n" +
+ "Provider did not honour pact file.\nSee\n * #{Pact.configuration.log_path}\n * #{Pact.configuration.tmp_dir}\nfor logs and pact files." +
+ "\n* * * * * * * * * * * * * * * * * * *\n\n"
+ )
+ end
+
+ def redify string
+ "\e[31m#{string}\e[m"
end
end
\ No newline at end of file