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