Class: TurnipFormatter::Printer::Scenario

Inherits:
Object
  • Object
show all
Extended by:
TurnipFormatter::Printer
Defined in:
lib/turnip_formatter/printer/scenario.rb

Class Method Summary collapse

Methods included from TurnipFormatter::Printer

render_template

Class Method Details



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