spec/weary/request_spec.rb in weary-0.2.3 vs spec/weary/request_spec.rb in weary-0.3.0
- old
+ new
@@ -17,10 +17,10 @@
test.class.should == Net::HTTP
end
it "should perform the request and retrieve a response" do
test = Weary::Request.new("http://foo.bar")
- method = test.method
+ method = test.method
response = Weary::Response.new(mock_response(method, 301, {'Location' => 'http://bar.foo'}), method)
test.stub!(:perform).and_return(response)
test.perform.code.should == 301
test.perform.redirected?.should == true
end
\ No newline at end of file