Sha256: 216ede95e1ebdcb16256c3f5ddd1897122c8a305ab588cfdbcbeeab65a5f71cd

Contents?: true

Size: 510 Bytes

Versions: 6

Compression:

Stored size: 510 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::Resource::Step.new(example, step_description)
    end

    def step_description
      create_step_node('Keyword', 'StepName', 1)
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
turnip_formatter-0.6.0.pre.beta.7 spec/support/step_helper.rb
turnip_formatter-0.6.0.pre.beta.6 spec/support/step_helper.rb
turnip_formatter-0.6.0.pre.beta.5 spec/support/step_helper.rb
turnip_formatter-0.6.0.pre.beta.4 spec/support/step_helper.rb
turnip_formatter-0.6.0.pre.beta.3 spec/support/step_helper.rb
turnip_formatter-0.6.0.pre.beta.2 spec/support/step_helper.rb