@@ -27,5 +27,14 class RoutingActivitiesTest < ActionController::IntegrationTest | |||||
27 | { :method => 'get', :path => "/activity.atom" }, |
|
27 | { :method => 'get', :path => "/activity.atom" }, | |
28 | { :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' } |
|
28 | { :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' } | |
29 | ) |
|
29 | ) | |
|
30 | assert_routing( | |||
|
31 | { :method => 'get', :path => "/projects/33/activity" }, | |||
|
32 | { :controller => 'activities', :action => 'index', :id => '33' } | |||
|
33 | ) | |||
|
34 | assert_routing( | |||
|
35 | { :method => 'get', :path => "/projects/33/activity.atom" }, | |||
|
36 | { :controller => 'activities', :action => 'index', :id => '33', | |||
|
37 | :format => 'atom' } | |||
|
38 | ) | |||
30 | end |
|
39 | end | |
31 | end |
|
40 | end |
@@ -347,15 +347,6 class RoutingTest < ActionController::IntegrationTest | |||||
347 | { :controller => 'versions', :action => 'index', :project_id => '33' } |
|
347 | { :controller => 'versions', :action => 'index', :project_id => '33' } | |
348 | ) |
|
348 | ) | |
349 | assert_routing( |
|
349 | assert_routing( | |
350 | { :method => 'get', :path => "/projects/33/activity" }, |
|
|||
351 | { :controller => 'activities', :action => 'index', :id => '33' } |
|
|||
352 | ) |
|
|||
353 | assert_routing( |
|
|||
354 | { :method => 'get', :path => "/projects/33/activity.atom" }, |
|
|||
355 | { :controller => 'activities', :action => 'index', :id => '33', |
|
|||
356 | :format => 'atom' } |
|
|||
357 | ) |
|
|||
358 | assert_routing( |
|
|||
359 | { :method => 'post', :path => "/projects" }, |
|
350 | { :method => 'post', :path => "/projects" }, | |
360 | { :controller => 'projects', :action => 'create' } |
|
351 | { :controller => 'projects', :action => 'create' } | |
361 | ) |
|
352 | ) |
General Comments 0
You need to be logged in to leave comments.
Login now