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.96 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.95 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.94 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.93 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.92 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.91 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.90 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.89 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.88 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.87 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.86 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.85 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.84 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.82 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.80 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.80.pre.5 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.80.pre.4 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.80.pre.2 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.80.pre.1 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.74 features-skeleton/support/hooks.rb