]> source.dussan.org Git - redmine.git/commitdiff
test: route: move activities test in projects test to integration/routing/activities_...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 24 Dec 2011 10:12:53 +0000 (10:12 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 24 Dec 2011 10:12:53 +0000 (10:12 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8346 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing/activities_test.rb
test/integration/routing_test.rb

index e0bfb6e4a136747922069fe89e3508e291a4bbbc..6fb63e3515fc3862c82989d0628c17b9a5eaf659 100644 (file)
@@ -27,5 +27,14 @@ class RoutingActivitiesTest < ActionController::IntegrationTest
            { :method => 'get', :path => "/activity.atom" },
            { :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' }
         )
+    assert_routing(
+        { :method => 'get', :path => "/projects/33/activity" },
+        { :controller => 'activities', :action => 'index', :id => '33' }
+      )
+    assert_routing(
+        { :method => 'get', :path => "/projects/33/activity.atom" },
+        { :controller => 'activities', :action => 'index', :id => '33',
+          :format => 'atom' }
+      )
   end
 end
index 82be3b451fb943d8f83d21224a873d637926054e..b11470025f52f94418334efdde6522e753f021dc 100644 (file)
@@ -346,15 +346,6 @@ class RoutingTest < ActionController::IntegrationTest
         { :method => 'get', :path => "/projects/33/roadmap" },
         { :controller => 'versions', :action => 'index', :project_id => '33' }
       )
-    assert_routing(
-        { :method => 'get', :path => "/projects/33/activity" },
-        { :controller => 'activities', :action => 'index', :id => '33' }
-      )
-    assert_routing(
-        { :method => 'get', :path => "/projects/33/activity.atom" },
-        { :controller => 'activities', :action => 'index', :id => '33',
-          :format => 'atom' }
-      )
     assert_routing(
         { :method => 'post', :path => "/projects" },
         { :controller => 'projects', :action => 'create' }