summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/news_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-08 02:38:41 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2012-01-08 02:38:41 +0000
commitc5f41baa945f2d331b791755350bdb8db85da3dd (patch)
tree322343e591a5202027c1e3ce1a2fb31ea4432e21 /test/integration/routing/news_test.rb
parent03e10cbc8f8e4ea8c75ff0f47a60890ff8ba4031 (diff)
downloadredmine-c5f41baa945f2d331b791755350bdb8db85da3dd.tar.gz
redmine-c5f41baa945f2d331b791755350bdb8db85da3dd.zip
test: route: split news tests
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8547 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing/news_test.rb')
-rw-r--r--test/integration/routing/news_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/integration/routing/news_test.rb b/test/integration/routing/news_test.rb
index 70c8b3afd..fd0e0f377 100644
--- a/test/integration/routing/news_test.rb
+++ b/test/integration/routing/news_test.rb
@@ -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' }