From e499904e3ac41d5da467f6e6bf27bad709e34976 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 14 Dec 2011 11:47:10 +0000 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 --- test/integration/routing_test.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 536cec89e..42ed38549 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