Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make sure that the common result steps to check for text in the page …

…work by converting the body to a string.
  • Loading branch information...
commit d558e2ec5a304233adef8b03830eb1b560b71e94 1 parent f826751
Kurt Schrader authored
View
4 lib/generators/cucumber/templates/features/steps/common_result_steps.rb
@@ -1,9 +1,9 @@
Then /^I should see "(.*)"$/ do |text|
- response.body.should =~ /#{text}/m
+ response.body.to_s.should =~ /#{text}/m
end
Then /^I should not see "(.*)"$/ do |text|
- response.body.should_not =~ /#{text}/m
+ response.body.to_s.should_not =~ /#{text}/m
end
Then /^I should see an? (\w+) message$/ do |message_type|
Please sign in to comment.
Something went wrong with that request. Please try again.