From e499904e3ac41d5da467f6e6bf27bad709e34976 2011-12-14 11:47:10 From: Toshi MARUYAMA Date: 2011-12-14 11:47:10 Subject: [PATCH] test: replace "should_route" of "welcome" to "assert_routing" at integration/routing_test.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8203 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 536cec8..42ed385 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -443,8 +443,11 @@ class RoutingTest < ActionController::IntegrationTest should_route :post, "/versions/1/status_by", :controller => 'versions', :action => 'status_by', :id => '1' end - context "welcome" do - should_route :get, "/robots.txt", :controller => 'welcome', :action => 'robots' + def test_welcome + assert_routing( + { :method => 'get', :path => "/robots.txt" }, + { :controller => 'welcome', :action => 'robots' } + ) end context "wiki (singular, project's pages)" do