Skip to content

Commit

Permalink
Typecast response.body to string instead of Merb::Rack::StreamWrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
SFEley committed Dec 21, 2008
1 parent f826751 commit 1bedb36
Showing 1 changed file with 2 additions and 2 deletions.
@@ -1,9 +1,9 @@
Then /^I should see "(.*)"$/ do |text| Then /^I should see "(.*)"$/ do |text|
response.body.should =~ /#{text}/m response.body.to_s.should =~ /#{text}/m
end end


Then /^I should not see "(.*)"$/ do |text| Then /^I should not see "(.*)"$/ do |text|
response.body.should_not =~ /#{text}/m response.body.to_s.should_not =~ /#{text}/m
end end


Then /^I should see an? (\w+) message$/ do |message_type| Then /^I should see an? (\w+) message$/ do |message_type|
Expand Down

0 comments on commit 1bedb36

Please sign in to comment.