Sha256: ba8b9682b7958b47aba998b147ce2b8ea16f052358f29c78f72b2115f6be7d08
Contents?: true
Size: 711 Bytes
Versions: 18
Compression:
Stored size: 711 Bytes
Contents
Then /^the following steps? should (fail|succeed):$/ do |expectation, steps_table| steps = steps_table.raw.flatten steps.each do |step| if expectation == 'fail' expect { step(step) }.to raise_error(RSPEC_EXPECTATION_NOT_MET_ERROR) else # succeed step(step) end end end When /^I run the following steps?:$/ do |steps_table| steps = steps_table.raw.flatten steps.each do |step| step(step) end end Then /^the following multiline step should (fail|succeed):$/ do |expectation, multiline_step| if expectation == 'fail' expect { steps(multiline_step) }.to raise_error(RSPEC_EXPECTATION_NOT_MET_ERROR) else # succeed steps(multiline_step) end end
Version data entries
18 entries across 18 versions & 1 rubygems