spec/mongrel2/httpresponse_spec.rb in mongrel2-0.2.2 vs spec/mongrel2/httpresponse_spec.rb in mongrel2-0.2.3
- old
+ new
@@ -44,11 +44,11 @@
it "allows headers to be set when the response is created" do
@response.headers.content_type.should == 'text/html'
end
- it "is a status 200 response if not set otherwise" do
- @response.status_line.should == 'HTTP/1.1 200 OK'
+ it "is a No Content response if not set otherwise" do
+ @response.status_line.should == 'HTTP/1.1 204 No Content'
end
it "sets Date and Content-length headers automatically if they haven't been set" do
@response << "Some stuff."