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
calabash-android-0.2.11 features-skeleton/support/hooks.rb
calabash-android-0.2.10 features-skeleton/support/hooks.rb
calabash-android-0.2.9 features-skeleton/support/hooks.rb
calabash-android-0.2.8 features-skeleton/support/hooks.rb
calabash-android-0.2.7 features-skeleton/support/hooks.rb
calabash-android-0.2.6 features-skeleton/support/hooks.rb
calabash-android-0.2.5 features-skeleton/support/hooks.rb
calabash-android-0.2.4 features-skeleton/support/hooks.rb
calabash-android-0.2.3 features-skeleton/support/hooks.rb
calabash-android-0.2.2 features-skeleton/support/hooks.rb
calabash-android-0.2.1 features-skeleton/support/hooks.rb
calabash-android-0.2.0 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre10 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre9 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre8 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre7 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre6 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre5 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre4 features-skeleton/support/hooks.rb
calabash-android-0.2.0.pre3 features-skeleton/support/hooks.rb