Sha256: f162f710eca7c00caf0ce07715ecc9d030397e1f458fbaff681ab069f356ca48

Contents?: true

Size: 505 Bytes

Versions: 10

Compression:

Stored size: 505 Bytes

Contents

require 'turnip_formatter/printer'
require 'turnip_formatter/printer/step'
require 'turnip_formatter/printer/runtime_error'

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

        def print_out(scenario)
          scenario.validation
          render_template(:scenario, scenario: scenario)
        rescue => e
          TurnipFormatter::Printer::RuntimeError.print_out(scenario.example, e)
        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/scenario.rb
turnip_formatter-0.2.10 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.9 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.8 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.7 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.6 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.5 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.4 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.3 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.2.2 lib/turnip_formatter/printer/scenario.rb