Module: Trailblazer::Test::Assertion::AssertPass::Errors
- Defined in:
- lib/trailblazer/test/assertion/assert_pass.rb
Overview
Utils
Class Method Summary collapse
Class Method Details
.colored_errors_for(ctx) ⇒ Object
84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/trailblazer/test/assertion/assert_pass.rb', line 84 def colored_errors_for(ctx) # TODO: generic errors object "finding" errors = if ctx[:"contract.default"] ctx[:"contract.default"].errors..inspect else "" end colored_errors = %{\e[33m#{errors}\e[0m} end |