Sha256: 67708c0c1420114ec210c2aa57784dabdb65bfc6275297e7d4ce12189998d01b

Contents?: true

Size: 765 Bytes

Versions: 26

Compression:

Stored size: 765 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|
  multiline_step = multiline_step.gsub(%{'''}, %{"""})
  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

26 entries across 26 versions & 1 rubygems

Version Path
spreewald-0.8.4 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.8.3 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.8.2 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.8.1 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.8.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.7.0 tests/shared/features/shared/step_definitions/test_steps.rb