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-1.2.2 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.1 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.1.2 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.1.1 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.1.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.0.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.10.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.9 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.8 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.7 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.6 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.5 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.4 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.3 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.2 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.1 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.9.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.8.6 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-0.8.5 tests/shared/features/shared/step_definitions/test_steps.rb