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

Version Path
spreewald-0.6.7 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.6.6 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.6.5 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.6.4 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.6.3 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.6.2 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.6.1 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.6.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.20 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.19 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.18 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.17 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.16 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.15 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.14 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.13 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.12 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.5.11 tests/shared/features/shared/step_definitions/test_steps.rb