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