Sha256: 8ff54f6264ea5f9bbdd7b6407346227fb23476969cc9d01bf871c058ec090768

Contents?: true

Size: 748 Bytes

Versions: 18

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
  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

18 entries across 16 versions & 4 rubygems

Version Path
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.8.0/features/step_definitions/additional_cli_steps.rb
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/rspec-expectations-2.8.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.4 vendor/ruby/1.9.1/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.3 vendor/ruby/1.9.1/gems/rspec-expectations-2.8.0/features/step_definitions/additional_cli_steps.rb
horseman-0.0.2 vendor/ruby/1.9.1/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.8.0 features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.6.alpha vendor/bundle/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.8.0.rc2 features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.5 vendor/bundle/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.4 vendor/bundle/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.3 vendor/bundle/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.2 vendor/bundle/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
nutshell-crm-0.0.1 vendor/bundle/gems/rspec-expectations-2.7.0/features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.8.0.rc1 features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.7.0 features/step_definitions/additional_cli_steps.rb
rspec-expectations-2.7.0.rc1 features/step_definitions/additional_cli_steps.rb