Sha256: bf365447b196fc2bf43cd297e40f2ed0cab0d108b3b89079d10b4e24d23aac4c

Contents?: true

Size: 870 Bytes

Versions: 10

Compression:

Stored size: 870 Bytes

Contents

require 'turnip_formatter/printer'
require 'turnip_formatter/printer/scenario'
require 'turnip_formatter/printer/tab_feature_statistics'
require 'turnip_formatter/printer/tab_tag_statistics'
require 'turnip_formatter/printer/tab_speed_statistics'

module TurnipFormatter
  module Printer
    class Index
      class << self
        include TurnipFormatter::Printer

        #
        # @param  RSpec::Core::Formatters::TurnipFormatter  formatter
        #
        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
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
turnip_formatter-0.2.11 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.10 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.9 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.8 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.7 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.6 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.5 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.4 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.3 lib/turnip_formatter/printer/index.rb
turnip_formatter-0.2.2 lib/turnip_formatter/printer/index.rb