Restore rev param validation that was removed in r2840.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4542 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-12-18 18:37:49 +00:00
parent f7529c94f6
commit 84dd413f22
2 changed files with 16 additions and 1 deletions
@@ -166,6 +166,12 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
}
end
def test_invalid_revision
get :revision, :id => 1, :rev => 'something_weird'
assert_response 500
assert_error_tag :content => /was not found/
end
def test_revision_with_repository_pointing_to_a_subdirectory
r = Project.find(1).repository
# Changes repository url to a subdirectory