- get :edit, :id => diary_entries(:normal_user_entry_1).id
- assert_response :redirect
- assert_redirected_to :controller => :user, :action => "login", :referer => "/diary_entry/edit"
-
- # Verify that you get a not found error, when you don't pass an id
- get(:edit, nil, {'user' => users(:normal_user).id})
+ # Verify that you get a not found error, when you pass a bogus id
+ get(:edit, {:display_name => entry.user.display_name, :id => 9999}, {'user' => entry.user.id})