diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-25 01:03:06 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-25 01:03:06 +0000 |
commit | 2fc1a83e6f25aa2fcc82c6f8bbdb6de84a872e9c (patch) | |
tree | 748ab487dd0d86f2509cecf4b79619622c74b1ce /test/integration | |
parent | 86ba999486b458da0a3ff41d845f302bc9fcd295 (diff) | |
download | redmine-2fc1a83e6f25aa2fcc82c6f8bbdb6de84a872e9c.tar.gz redmine-2fc1a83e6f25aa2fcc82c6f8bbdb6de84a872e9c.zip |
test: route: move previews test in news test to routing/previews_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8354 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration')
-rw-r--r-- | test/integration/routing/previews_test.rb | 4 | ||||
-rw-r--r-- | test/integration/routing_test.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/integration/routing/previews_test.rb b/test/integration/routing/previews_test.rb index 6707132fc..58bcc4ae0 100644 --- a/test/integration/routing/previews_test.rb +++ b/test/integration/routing/previews_test.rb @@ -27,5 +27,9 @@ class RoutingPreviewsTest < ActionController::IntegrationTest { :method => 'post', :path => "/issues/preview/123" }, { :controller => 'previews', :action => 'issue', :id => '123' } ) + assert_routing( + { :method => 'get', :path => "/news/preview" }, + { :controller => 'previews', :action => 'news' } + ) end end diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 2f51bf748..b49826e4c 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -261,10 +261,6 @@ class RoutingTest < ActionController::IntegrationTest { :controller => 'news', :action => 'edit', :id => '567' } ) assert_routing( - { :method => 'get', :path => "/news/preview" }, - { :controller => 'previews', :action => 'news' } - ) - assert_routing( { :method => 'post', :path => "/projects/567/news" }, { :controller => 'news', :action => 'create', :project_id => '567' } ) |