summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-05 15:03:16 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-01-05 15:03:16 +0000
commitf4c5fe43cb0307573e09e973ec9510720380f986 (patch)
tree1790be55bb96c23b50897bd397e0562ad2aee25c /test/functional
parent9ee02d04f370e9be1e29ebfd03b703d913900fe5 (diff)
downloadredmine-f4c5fe43cb0307573e09e973ec9510720380f986.tar.gz
redmine-f4c5fe43cb0307573e09e973ec9510720380f986.zip
scm: mercurial: add some tests at unit and functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4635 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb16
1 files changed, 15 insertions, 1 deletions
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index 492c6558e..b577da87e 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -74,7 +74,21 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
assert_not_nil assigns(:entries)
assert_equal ['delete.png'], assigns(:entries).collect(&:name)
end
-
+
+ def test_show_directory_sql_escape_percent
+ get :show, :id => 3, :path => ['sql_escape', 'percent%dir'], :rev => 13
+ assert_response :success
+ assert_template 'show'
+
+ assert_not_nil assigns(:entries)
+ assert_equal ['percent%file1.txt', 'percentfile1.txt'], assigns(:entries).collect(&:name)
+ changesets = assigns(:changesets)
+
+ ## This is not yet implemented.
+ # assert_not_nil changesets
+ # assert_equal %w(13 11 10 9), changesets.collect(&:revision)
+ end
+
def test_changes
get :changes, :id => 3, :path => ['images', 'edit.png']
assert_response :success