Permalink
Browse files

Typecast response.body to string instead of Merb::Rack::StreamWrapper

  • Loading branch information...
1 parent f826751 commit 1bedb3650c2882799df90d6276b08b00ccf5f890 @SFEley SFEley committed Dec 21, 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 1bedb36

Please sign in to comment.