Permalink
Browse files

http://httpstat.us/200 started returning invalid content lengths. Cha…

  • Loading branch information...
1 parent 05ed118 commit 4e3b4f2bbd2a5aaeab5f3fa23fbb3eee2796472d @bblimke committed Feb 2, 2014
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/acceptance/shared/callbacks.rb
@@ -101,20 +101,20 @@
WebMock.after_request(:except => [:other_lib]) do |_, response|
@response = response
end
- http_request(:get, "http://httpstat.us/200")
+ http_request(:get, "http://httpstat.us/201")
end
it "should pass real response to callback with status and message" do
- @response.status[0].should == 200
- @response.status[1].should == "OK" unless adapter_info.include?(:no_status_message)
+ @response.status[0].should == 201
+ @response.status[1].should == "Created" unless adapter_info.include?(:no_status_message)
end
it "should pass real response to callback with headers" do
- @response.headers["Content-Length"].should == "6"
+ @response.headers["Content-Length"].should == "11"
end
it "should pass response to callback with body" do
- @response.body.size.should == 6
+ @response.body.size.should == 11
end
end
end

0 comments on commit 4e3b4f2

Please sign in to comment.