##// END OF EJS Templates
test: route: split news tests...
Toshi MARUYAMA -
r8427:c5f41baa945f
parent child
Show More
@@ -18,7 +18,7
18 require File.expand_path('../../../test_helper', __FILE__)
18 require File.expand_path('../../../test_helper', __FILE__)
19
19
20 class RoutingNewsTest < ActionController::IntegrationTest
20 class RoutingNewsTest < ActionController::IntegrationTest
21 def test_news
21 def test_news_index
22 assert_routing(
22 assert_routing(
23 { :method => 'get', :path => "/news" },
23 { :method => 'get', :path => "/news" },
24 { :controller => 'news', :action => 'index' }
24 { :controller => 'news', :action => 'index' }
@@ -35,6 +35,9 class RoutingNewsTest < ActionController::IntegrationTest
35 { :method => 'get', :path => "/news.json" },
35 { :method => 'get', :path => "/news.json" },
36 { :controller => 'news', :action => 'index', :format => 'json' }
36 { :controller => 'news', :action => 'index', :format => 'json' }
37 )
37 )
38 end
39
40 def test_news
38 assert_routing(
41 assert_routing(
39 { :method => 'get', :path => "/news/2" },
42 { :method => 'get', :path => "/news/2" },
40 { :controller => 'news', :action => 'show', :id => '2' }
43 { :controller => 'news', :action => 'show', :id => '2' }
General Comments 0
You need to be logged in to leave comments. Login now