]> source.dussan.org Git - redmine.git/commitdiff
Rails3: test: scm: move "repository_path_hash" method in repositories routing test...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 23 Feb 2012 06:11:59 +0000 (06:11 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 23 Feb 2012 06:11:59 +0000 (06:11 +0000)
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

test/integration/routing/repositories_test.rb
test/test_helper.rb

index 44fe7309e563575eca21fcb3c66135cfd19c3973..14c835f3722443035054c2655726075b6394b7a0 100644 (file)
@@ -366,13 +366,4 @@ class RoutingRepositoriesTest < ActionController::IntegrationTest
         { :controller => 'repositories', :action => 'remove_related_issue', :id => 'redmine', :repository_id => 'foo', :rev => '123', :issue_id => '25' }
       )
   end
-
-  private
-
-  def repository_path_hash(arr)
-    hs = {}
-    hs[:path]  = arr.join("/")
-    hs[:param] = arr
-    hs
-  end
 end
index bf6d5b366d7e62a078c01d02cb748b2961d4c9e9..a9eedaba9f1c0ac6bba864122ef7c3f5bafaeea2 100644 (file)
@@ -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