summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-23 06:11:59 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-02-23 06:11:59 +0000
commit21cb2ee81727ed78f3baaf3a5125f7e88ea259ee (patch)
treec66758399b883a8d4855e9f75f0d1a94f371dd6f /test/test_helper.rb
parentaa286a8e3f1fe7af099ee57a9f44b4641582e6b2 (diff)
downloadredmine-21cb2ee81727ed78f3baaf3a5125f7e88ea259ee.tar.gz
redmine-21cb2ee81727ed78f3baaf3a5125f7e88ea259ee.zip
Rails3: test: scm: move "repository_path_hash" method in repositories routing test to test_helper.rb for common use
Rails3 new route format returns path param as string not array. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8923 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index bf6d5b366..a9eedaba9 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -143,6 +143,13 @@ class ActiveSupport::TestCase
File.directory?(repository_path(vendor))
end
+ def repository_path_hash(arr)
+ hs = {}
+ hs[:path] = arr.join("/")
+ hs[:param] = arr
+ hs
+ end
+
def assert_error_tag(options={})
assert_tag({:attributes => { :id => 'errorExplanation' }}.merge(options))
end