Sha256: 0826d9c7e1e2f1b0902b90e4900c1ee10ec7d6fd41836bafb93ea55877a1fe7d

Contents?: true

Size: 1.03 KB

Versions: 44

Compression:

Stored size: 1.03 KB

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

Then(/^a hidden string with quotes should not be visible$/) do
  hidden_string = %Q{hidden '" quotes}
  assert_hidden(:text => hidden_string)
end

Then(/^a visible string with quotes should be visible$/) do
  visible_string = %Q{visible '" quotes}
  assert_visible(:text => visible_string)
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
spreewald-1.6.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.5.5 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.5.4 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.5.3 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.5.2 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.5.1 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.5.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.4.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.3.3 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.3.2 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.3.1 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.3.0 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.14 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.13 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.12 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.11 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.10 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.9 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.8 tests/shared/features/shared/step_definitions/test_steps.rb
spreewald-1.2.7 tests/shared/features/shared/step_definitions/test_steps.rb