Sha256: 44a5f575d11306488d9aaa73c27f7ca44d509206b8d5f32fb3041e4e60697f6b
Contents?: true
Size: 477 Bytes
Versions: 24
Compression:
Stored size: 477 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 Then /^the output should contain all of these:$/ do |table| table.raw.flatten.each do |string| assert_partial_output(string) end end
Version data entries
24 entries across 24 versions & 3 rubygems