@@ -18,9 +18,15 | |||
|
18 | 18 | require File.expand_path('../../test_helper', __FILE__) |
|
19 | 19 | |
|
20 | 20 | class RoutingTest < ActionController::IntegrationTest |
|
21 |
|
|
|
22 | should_route :get, "/activity", :controller => 'activities', :action => 'index', :id => nil | |
|
23 | should_route :get, "/activity.atom", :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' | |
|
21 | def test_activities | |
|
22 | assert_routing( | |
|
23 | { :method => 'get', :path => "/activity" }, | |
|
24 | { :controller => 'activities', :action => 'index', :id => nil } | |
|
25 | ) | |
|
26 | assert_routing( | |
|
27 | { :method => 'get', :path => "/activity.atom" }, | |
|
28 | { :controller => 'activities', :action => 'index', :id => nil, :format => 'atom' } | |
|
29 | ) | |
|
24 | 30 | end |
|
25 | 31 | |
|
26 | 32 | context "attachments" do |
General Comments 0
You need to be logged in to leave comments.
Login now