diff options
Diffstat (limited to 'test/integration/routing/my_test.rb')
-rw-r--r-- | test/integration/routing/my_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/integration/routing/my_test.rb b/test/integration/routing/my_test.rb index 5537a8b72..11c8a2cfb 100644 --- a/test/integration/routing/my_test.rb +++ b/test/integration/routing/my_test.rb @@ -25,6 +25,12 @@ class RoutingMyTest < ActionController::IntegrationTest { :controller => 'my', :action => 'account' } ) end + ["get", "post"].each do |method| + assert_routing( + { :method => method, :path => "/my/account/destroy" }, + { :controller => 'my', :action => 'destroy' } + ) + end assert_routing( { :method => 'get', :path => "/my/page" }, { :controller => 'my', :action => 'page' } |