Class: TurnipFormatter::Printer::Index

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

Class Method Summary collapse

Methods included from TurnipFormatter::Printer

render_template

Class Method Details

Parameters:

  • RSpec::Core::Formatters::TurnipFormatter

    formatter



16
17
18
19
20
21
22
23
24
25
# File 'lib/turnip_formatter/printer/index.rb', line 16

def print_out(formatter)
  render_template(:index, {
      scenarios:        formatter.scenarios,
      passed_scenarios: formatter.passed_scenarios,
      failed_count:     formatter.failure_count,
      pending_count:    formatter.pending_count,
      total_time:       formatter.duration,
    }
  )
end