Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Regexp.compile

  • Loading branch information...
commit ed4defb4bfcd0a0073b80f8129cd3892d0a71ce6 1 parent 09d3e4c
@dchelimsky dchelimsky authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  features/step_definitions/additional_cli_steps.rb
View
2  features/step_definitions/additional_cli_steps.rb
@@ -1,6 +1,6 @@
# 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(s) }
+ unless [string1, string2].any? { |s| combined_output =~ Regexp.compile(s) }
fail %Q{Neither "#{string1}" or "#{string2}" were found in:\n#{combined_output}}
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.