Merged r4703 from trunk (scm: fix error on revision page for empty revision).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4707 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-01-13 12:10:52 +00:00
parent 788b143596
commit b877215261
6 changed files with 56 additions and 1 deletions
@@ -171,7 +171,15 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
assert_response 500
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_error_tag :content => /was not found/
end
end
def test_revision_with_repository_pointing_to_a_subdirectory
r = Project.find(1).repository
# Changes repository url to a subdirectory