]> source.dussan.org Git - redmine.git/commitdiff
test: replace "should_route" of "welcome" to "assert_routing" at integration/routing_...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 14 Dec 2011 11:47:10 +0000 (11:47 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 14 Dec 2011 11:47:10 +0000 (11:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8203 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/routing_test.rb

index 536cec89e9e2157800441b20515b0e6e85c4e115..42ed38549d9088613b7dde86ebe12634e3ff347c 100644 (file)
@@ -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