Sha256: 3c29d45e050e846292558f710b57437347cf357b64b12c2a92415e3f42cf8c79

Contents?: true

Size: 491 Bytes

Versions: 61

Compression:

Stored size: 491 Bytes

Contents

Before do |scenario|
  StepCounter.step_index = 0
  StepCounter.step_line = scenario.raw_steps[StepCounter.step_index].line
end

AfterStep do |scenario|
  #Handle multiline steps
  StepCounter.step_index = StepCounter.step_index + 1
  StepCounter.step_line = scenario.raw_steps[StepCounter.step_index].line unless scenario.raw_steps[StepCounter.step_index].nil?
end

StepCounter = Class.new
class << StepCounter
  @step_index = 0
  @step_line = 0
  attr_accessor :step_index, :step_line
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
gametel-0.8 features/support/hooks.rb
gametel-0.7 features/support/hooks.rb
gametel-0.6 features/support/hooks.rb
gametel-0.5.9.3 features/support/hooks.rb
gametel-0.5.9.2 features/support/hooks.rb
gametel-0.5.9.1 features/support/hooks.rb
gametel-0.5.9 features/support/hooks.rb
gametel-0.5.8.1 features/support/hooks.rb
gametel-0.5.8 features/support/hooks.rb
gametel-0.5.7 features/support/hooks.rb
gametel-0.5.6 features/support/hooks.rb
gametel-0.5.5 features/support/hooks.rb
gametel-0.5.4 features/support/hooks.rb
gametel-0.5.3 features/support/hooks.rb
gametel-0.5.2 features/support/hooks.rb
gametel-0.5.1 features/support/hooks.rb
gametel-0.5 features/support/hooks.rb
gametel-0.4 features/support/hooks.rb
gametel-0.3 features/support/hooks.rb
gametel-0.2 features/support/hooks.rb