[rspec-users] specifying an HTTP status code

Scott Taylor mailing_lists at railsnewbie.com
Sat Dec 1 17:19:20 EST 2007


On Dec 1, 2007, at 5:10 PM, Jarkko Laine wrote:

> On 1.12.2007, at 23.27, Scott Taylor wrote:
>>  it "should return an HTTP status code of 404" do
>>    get :view
>>    response.headers["Status"].should == "404 Not Found"
>
> or
>
> response.response_code.should == 404
>

Nice.  I find out something new every day from this list.




More information about the rspec-users mailing list