Sha256: a6a172b0bacc756bf4a34fcb2f33e8c14d73bd3408b2dd284137caf9c086df01

Contents?: true

Size: 748 Bytes

Versions: 240

Compression:

Stored size: 748 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, all_output)
  end
end

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

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

Version data entries

240 entries across 142 versions & 27 rubygems

Version Path
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
ftl-0.2.0 vendor/bundle/gems/rspec-expectations-2.10.0/features/step_definitions/additional_cli_steps.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-expectations-2.9.1/features/step_definitions/additional_cli_steps.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-expectations-2.10.0/features/step_definitions/additional_cli_steps.rb
classiccms-0.2.4.pre vendor/bundle/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.10.0 features/step_definitions/additional_cli_steps.rb
horseman-0.0.5 vendor/ruby/1.9.1/gems/rspec-expectations-2.9.1/features/step_definitions/additional_cli_steps.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.9.1 features/step_definitions/additional_cli_steps.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
classicCMS-0.2.3 vendor/bundle/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
classicCMS-0.2.2 vendor/bundle/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
classicCMS-0.2.1 vendor/bundle/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
classicCMS-0.2.0 vendor/bundle/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
classicCMS-0.1.2 vendor/bundle/gems/rspec-expectations-2.9.0/features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.9.0 features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.9.0.rc2 features/step_definitions/additional_cli_steps.rb