Method: Matest::SpecPrinter#print_explanation_for
- Defined in:
- lib/matest/spec_printer.rb
#print_explanation_for(status) ⇒ Object
74 75 76 77 78 79 80 81 82 |
# File 'lib/matest/spec_printer.rb', line 74 def print_explanation_for(status) subexpressions = Sorcerer.subexpressions(status.example.example_block.assertion_sexp).reverse.uniq.reverse if subexpressions.any? puts header("Explanation") subexpressions.all? do |code| print_subexpression(code, status) end end end |