Permalink
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...
1 parent f826751 commit d558e2ec5a304233adef8b03830eb1b560b71e94 Kurt Schrader committed Dec 3, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 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|

0 comments on commit d558e2e

Please sign in to comment.