Sha256: 9504c8dd0d4c972a3da7cfcb86c0fc5d0c9ff0ee7bb4c7d1fc5e4089bbf706e7

Contents?: true

Size: 558 Bytes

Versions: 50

Compression:

Stored size: 558 Bytes

Contents

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

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|
  #Håndtering af den situation hvor Feature/Scenario/steps er mulitline
  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

50 entries across 50 versions & 1 rubygems

Version Path
calabash-cucumber-0.9.51 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.50 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.49 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.48 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.47 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.46 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.45 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.44 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.43 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.42 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.41 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.40 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.39 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.38 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.37 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.36 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.35 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.34 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.33 features-skeleton/support/hooks.rb
calabash-cucumber-0.9.32 features-skeleton/support/hooks.rb