- assert_raise ActionController::RoutingError do
- get "/user/#{CGI.escape(user.display_name)}/diary/#{diary_entry.id})"
- end
+ get "/user/#{CGI.escape(user.display_name)}/diary/#{diary_entry.id})"
+ assert_response :not_found
+ assert_template "rescues/routing_error"