Sha256: 29a9a415c9536bab2de98e66494e9c93772e756f9fca4a63fdb47b58a93eeda2
Contents?: true
Size: 481 Bytes
Versions: 11
Compression:
Stored size: 481 Bytes
Contents
Given('a step that always passes') do # no-op end second_time_pass = 0 Given('a step that passes the second time') do second_time_pass += 1 if second_time_pass < 2 raise StandardError, 'Exception in step' end end third_time_pass = 0 Given('a step that passes the third time') do third_time_pass += 1 if third_time_pass < 3 raise StandardError, 'Exception in step' end end Given('a step that always fails') do raise StandardError, 'Exception in step' end
Version data entries
11 entries across 11 versions & 1 rubygems