Respond with 404 instead of 500 when revision/entry is not found in the repository (#7307).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4710 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -168,14 +168,14 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
||||
|
||||
def test_invalid_revision
|
||||
get :revision, :id => 1, :rev => 'something_weird'
|
||||
assert_response 500
|
||||
assert_response 404
|
||||
assert_error_tag :content => /was not found/
|
||||
end
|
||||
|
||||
def test_empty_revision
|
||||
['', ' ', nil].each do |r|
|
||||
get :revision, :id => 1, :rev => r
|
||||
assert_response 500
|
||||
assert_response 404
|
||||
assert_error_tag :content => /was not found/
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user