@@ -27,5 +27,9 class RoutingPreviewsTest < ActionController::IntegrationTest | |||||
27 | { :method => 'post', :path => "/issues/preview/123" }, |
|
27 | { :method => 'post', :path => "/issues/preview/123" }, | |
28 | { :controller => 'previews', :action => 'issue', :id => '123' } |
|
28 | { :controller => 'previews', :action => 'issue', :id => '123' } | |
29 | ) |
|
29 | ) | |
|
30 | assert_routing( | |||
|
31 | { :method => 'get', :path => "/news/preview" }, | |||
|
32 | { :controller => 'previews', :action => 'news' } | |||
|
33 | ) | |||
30 | end |
|
34 | end | |
31 | end |
|
35 | end |
@@ -261,10 +261,6 class RoutingTest < ActionController::IntegrationTest | |||||
261 | { :controller => 'news', :action => 'edit', :id => '567' } |
|
261 | { :controller => 'news', :action => 'edit', :id => '567' } | |
262 | ) |
|
262 | ) | |
263 | assert_routing( |
|
263 | assert_routing( | |
264 | { :method => 'get', :path => "/news/preview" }, |
|
|||
265 | { :controller => 'previews', :action => 'news' } |
|
|||
266 | ) |
|
|||
267 | assert_routing( |
|
|||
268 | { :method => 'post', :path => "/projects/567/news" }, |
|
264 | { :method => 'post', :path => "/projects/567/news" }, | |
269 | { :controller => 'news', :action => 'create', :project_id => '567' } |
|
265 | { :controller => 'news', :action => 'create', :project_id => '567' } | |
270 | ) |
|
266 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now