Sha256: 0f089b7585761ac38ddd19832d2d27e8898217e8e35806307ca9d11e6d79f36d

Contents?: true

Size: 543 Bytes

Versions: 32

Compression:

Stored size: 543 Bytes

Contents

CALABASH_COUNT = {:step_index => 0, :step_line => nil}

#TODO change this approach as it breaks scenario outlines
Before do |scenario|
  begin
    CALABASH_COUNT[:step_index] = 0
    CALABASH_COUNT[:step_line] = scenario.raw_steps[CALABASH_COUNT[:step_index]].line
  rescue Exception => e
    puts "#{Time.now} - Exception:#{e}"
  end
end

AfterStep do |scenario|
  CALABASH_COUNT[:step_index] = CALABASH_COUNT[:step_index] + 1
  raw = scenario.raw_steps[CALABASH_COUNT[:step_index]]
  CALABASH_COUNT[:step_line] = raw.line unless raw.nil?
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
calabash-cucumber-0.9.72 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.70 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.68 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.67 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.66 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.65 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.63 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.62 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.61 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.60 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.54 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.53 features-skeleton/support/hooks.rb