spec/unit/sucker/response_spec.rb in sucker-0.4.0 vs spec/unit/sucker/response_spec.rb in sucker-0.5.0
- old
+ new
@@ -3,10 +3,10 @@
module Sucker
describe Response do
before do
curl = Sucker.new.curl
curl.stub(:get).and_return(nil)
- curl.stub!(:body_str).and_return("foo")
+ curl.stub!(:body_str).and_return("<foo bar='baz' />")
curl.stub!(:response_code).and_return(200)
curl.stub!(:total_time).and_return(1.0)
@response = Response.new(curl)
end
\ No newline at end of file