summaryrefslogtreecommitdiffstats
path: root/test/functional/repositories_subversion_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-17 14:17:04 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-02-17 14:17:04 +0000
commit66c979d63c49ef48e11ef6a92bdf9750b9658aa3 (patch)
tree731d26794c29e3838e11da61968c0641eaf277d0 /test/functional/repositories_subversion_controller_test.rb
parent7a3d385b8e530c66937ddf0f924ca837d9d21076 (diff)
downloadredmine-66c979d63c49ef48e11ef6a92bdf9750b9658aa3.tar.gz
redmine-66c979d63c49ef48e11ef6a92bdf9750b9658aa3.zip
scm: fix diff revision param validation.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4860 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_subversion_controller_test.rb')
-rw-r--r--test/functional/repositories_subversion_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index be2b6087d..54cc4cd67 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -172,6 +172,12 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
assert_error_tag :content => /was not found/
end
+ def test_invalid_revision_diff
+ get :diff, :id => 1, :rev => '1', :rev_to => 'something_weird'
+ 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