diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-14 13:05:08 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-12-14 13:05:08 +0000 |
commit | 98fb0dd565037c7e513b028d61856654585b0ef1 (patch) | |
tree | 297acf54cd3a896648cb771f1a941fa6cd163cea | |
parent | e499904e3ac41d5da467f6e6bf27bad709e34976 (diff) | |
download | redmine-98fb0dd565037c7e513b028d61856654585b0ef1.tar.gz redmine-98fb0dd565037c7e513b028d61856654585b0ef1.zip |
test: replace "should_route" of "administration panel" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8204 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/integration/routing_test.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/integration/routing_test.rb b/test/integration/routing_test.rb index 42ed38549..e8b7a7c09 100644 --- a/test/integration/routing_test.rb +++ b/test/integration/routing_test.rb @@ -481,7 +481,10 @@ class RoutingTest < ActionController::IntegrationTest should_route :post, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida' end - context "administration panel" do - should_route :get, "/admin/projects", :controller => 'admin', :action => 'projects' + def test_administration_panel + assert_routing( + { :method => 'get', :path => "/admin/projects" }, + { :controller => 'admin', :action => 'projects' } + ) end end |