Sha256: 6c11447587c672094ae6a11f361388152bf86548b8d56227ac46dec790b7b127

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 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| combined_output =~ Regexp.compile(s) }
    fail %Q{Neither "#{string1}" or "#{string2}" were found in:\n#{combined_output}}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rspec-expectations-2.0.0.rc features/step_definitions/additional_cli_steps.rb