Respond with 404 on ActionView::MissingTemplate (#11503).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10204 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -60,4 +60,9 @@ class ApplicationTest < ActionController::IntegrationTest
|
||||
assert_response 200
|
||||
assert_nil session[:user_id]
|
||||
end
|
||||
|
||||
def test_missing_template_should_respond_with_404
|
||||
get '/login.png'
|
||||
assert_response 404
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user