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