Sha256: a43024a8d79a3c81502198f54fe62360edded8e5bb7385c579b00b4328889b2e

Contents?: true

Size: 736 Bytes

Versions: 4

Compression:

Stored size: 736 Bytes

Contents

# Useful for when the output is slightly different on different versions of ruby
Then /^the output should contain "([^"]*)" or "([^"]*)"$/ do |string1, string2|
  unless [string1, string2].any? { |s| all_output =~ regexp(s) }
    fail %Q{Neither "#{string1}" or "#{string2}" were found in:\n#{all_output}}
  end
end

Then /^the output should contain all of these:$/ do |table|
  table.raw.flatten.each do |string|
    assert_partial_output(string)
  end
end

Then /^the example(?:s)? should(?: all)? pass$/ do
  Then %q{the output should contain "0 failures"}
  Then %q{the exit status should be 0}
end

Then /^the example should fail$/ do
  Then %q{the output should contain "1 failure"}
  Then %q{the exit status should not be 0}
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-expectations-2.6.0 features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.6.0.rc6 features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.6.0.rc4 features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.6.0.rc2 features/step_definitions/additional_cli_steps.rb