spec/httpi/response_spec.rb in httpi-0.4.1 vs spec/httpi/response_spec.rb in httpi-0.5.0
- old
+ new
@@ -6,9 +6,14 @@
describe "#code" do
it "should return the HTTP response code" do
response.code.should == 200
end
+
+ it "should always return an Integer" do
+ response = HTTPI::Response.new "200", {}, ""
+ response.code.should == 200
+ end
end
describe "#headers" do
it "should return the HTTP response headers" do
response.headers.should == { "Content-Encoding" => "gzip" }