Sha256: 2f584473df0d3f93b90edb384c061238b06b06c8c4484c7b7426c5830ea082f3

Contents?: true

Size: 524 Bytes

Versions: 5

Compression:

Stored size: 524 Bytes

Contents

require 'support/example_helper'

module StepHelper
  include ExampleHelper

  def passed_step
    base_step(passed_example)
  end

  def failed_step
    base_step(failed_example).tap { |s| s.status = :failed }
  end

  def pending_step
    base_step(pending_example).tap { |s| s.status = :pending  }
  end

  private

    def base_step(example)
      TurnipFormatter::Step.new(example, step_description)
    end

    def step_description
      Turnip::Builder::Step.new('StepName', ['Docstring'], 1, 'Keyword')
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
turnip_formatter-0.5.0 spec/support/step_helper.rb
turnip_formatter-0.4.0 spec/support/step_helper.rb
turnip_formatter-0.3.4 spec/support/step_helper.rb
turnip_formatter-0.3.3 spec/support/step_helper.rb
turnip_formatter-0.3.2 spec/support/step_helper.rb