test: route: move activities test in projects test to integration/routing/activities_test.rb

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8346 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-12-24 10:12:53 +00:00
parent 20ead6d8f7
commit 79d227d34e
2 changed files with 9 additions and 9 deletions

View 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

View 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' }