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' }
{ :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' }