Class: TurnipFormatter::Printer::Scenario
- Inherits:
-
Object
- Object
- TurnipFormatter::Printer::Scenario
- Extended by:
- TurnipFormatter::Printer
- Defined in:
- lib/turnip_formatter/printer/scenario.rb
Class Method Summary collapse
Methods included from TurnipFormatter::Printer
Class Method Details
.print_out(scenario) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/turnip_formatter/printer/scenario.rb', line 11 def print_out(scenario) scenario.validation render_template(:scenario, scenario: scenario) rescue => e TurnipFormatter::Printer::RuntimeError.print_out(scenario.example, e) end |