search for: readscontroller

Displaying 1 result from an estimated 1 matches for "readscontroller".

Did you mean: adscontroller
2010 Aug 08
2
issue with rescue_action_in_public! and testing 404 responses
...404 when trying to edit non-existing reads" do rescue_action_in_public! sign_in(@user) Read.should_receive(:find_by_id_and_user_id!).with(2, @user.id).and_raise(ActiveRecord::RecordNotFound) get :edit, :id => 2 response.status.should eql 404 end and the exception: 1) ReadsController resources respons with 404 for non existing reads for GET /reads/2/edit Failure/Error: get :edit, :id => 2 ActiveRecord::RecordNotFound Thanks, /Christoffer -- View this message in context: http://old.nabble.com/issue-with-rescue_action_in_public%21-and-testing-404-responses-tp2938228...