[rspec-users] Rspec doesn't pickup the status code correctly.

Pat Maddox pergesu at gmail.com
Sun Aug 3 16:19:26 EDT 2008

>      it "should return conflict 409" do
>        do_post
>        response.response_code.should == 409
>      end

What is the failure message?

Also, it looks like your before block has not set Account.new to
return @account, and that @account is nil.  Is this a nested describe,
and there's some other setup happening elsewhere?


More information about the rspec-users mailing list