##// END OF EJS Templates
test: replace "should_route" of "activities" to "assert_routing" at integration/routing_test.rb...
Toshi MARUYAMA -
r8081:0b4aed008c96
parent child
Show More
@@ -18,9 +18,15
18 require File.expand_path('../../test_helper', __FILE__)
18 require File.expand_path('../../test_helper', __FILE__)
19
19
20 class RoutingTest < ActionController::IntegrationTest
20 class RoutingTest < ActionController::IntegrationTest
21 context "activities" do
21 def test_activities
22 should_route :get, "/activity", :controller => 'activities', :action => 'index', :id => nil
22 assert_routing(
23 should_route :get, "/activity.atom", :controller => 'activities', :action => 'index', :id => nil, :format => 'atom'
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 end
30 end
25
31
26 context "attachments" do
32 context "attachments" do
General Comments 0
You need to be logged in to leave comments. Login now