Sha256: 17dac948611f20f9cc36f19b9d57f1ab348683b1a89340036c1da8282edf3901

Contents?: true

Size: 571 Bytes

Versions: 8

Compression:

Stored size: 571 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)
          #
          # TODO output for scenario.valid? == false
          #
          render_template(:scenario, scenario: scenario) if scenario.valid?
        rescue => e
          TurnipFormatter::Printer::RuntimeError.print_out(scenario.example, e)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
turnip_formatter-0.6.0.pre.beta.1 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.5.0 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.4.0 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.3.4 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.3.3 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.3.2 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.3.1 lib/turnip_formatter/printer/scenario.rb
turnip_formatter-0.3.0 lib/turnip_formatter/printer/scenario.rb