]> source.dussan.org Git - redmine.git/commitdiff
test: route: split news tests
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Jan 2012 02:38:41 +0000 (02:38 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 8 Jan 2012 02:38:41 +0000 (02:38 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8547 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing/news_test.rb

index 70c8b3afd879eba5c5854aa97527c1b6ccf6fc70..fd0e0f37788fe49bb8228530c0e511b88a202a50 100644 (file)
@@ -18,7 +18,7 @@
 require File.expand_path('../../../test_helper', __FILE__)
 
 class RoutingNewsTest < ActionController::IntegrationTest
-  def test_news
+  def test_news_index
     assert_routing(
         { :method => 'get', :path => "/news" },
         { :controller => 'news', :action => 'index' }
@@ -35,6 +35,9 @@ class RoutingNewsTest < ActionController::IntegrationTest
         { :method => 'get', :path => "/news.json" },
         { :controller => 'news', :action => 'index', :format => 'json' }
       )
+  end
+
+  def test_news
     assert_routing(
         { :method => 'get', :path => "/news/2" },
         { :controller => 'news', :action => 'show', :id => '2' }