mirror of
https://github.com/redmine/redmine.git
synced 2024-09-13 15:45:44 +02:00
test: replace "should_route" of "wikis (plural, admin setup)" to "assert_routing" at integration/routing_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8216 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f70a5397f2
commit
8ac56d13d7
@ -517,11 +517,19 @@ class RoutingTest < ActionController::IntegrationTest
|
||||
should_route :delete, "/projects/22/wiki/ladida", :controller => 'wiki', :action => 'destroy', :project_id => '22', :id => 'ladida'
|
||||
end
|
||||
|
||||
context "wikis (plural, admin setup)" do
|
||||
should_route :get, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
|
||||
|
||||
should_route :post, "/projects/ladida/wiki", :controller => 'wikis', :action => 'edit', :id => 'ladida'
|
||||
should_route :post, "/projects/ladida/wiki/destroy", :controller => 'wikis', :action => 'destroy', :id => 'ladida'
|
||||
def test_wikis_plural_admin_setup
|
||||
assert_routing(
|
||||
{ :method => 'get', :path => "/projects/ladida/wiki/destroy" },
|
||||
{ :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/projects/ladida/wiki" },
|
||||
{ :controller => 'wikis', :action => 'edit', :id => 'ladida' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/projects/ladida/wiki/destroy" },
|
||||
{ :controller => 'wikis', :action => 'destroy', :id => 'ladida' }
|
||||
)
|
||||
end
|
||||
|
||||
def test_administration_panel
|
||||
|
Loading…
Reference in New Issue
Block a user