summaryrefslogtreecommitdiffstats
path: root/test/integration/routing
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-06 21:01:35 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-06 21:01:35 +0000
commitbc3c151236a1b2e96d13b467313c5bf6e0eff540 (patch)
tree4662dde0ac9ec6bc68bae76dce27bb6d96dbc47e /test/integration/routing
parent6d974eb0188623a42971c120f1b1af6cf832e8d6 (diff)
downloadredmine-bc3c151236a1b2e96d13b467313c5bf6e0eff540.tar.gz
redmine-bc3c151236a1b2e96d13b467313c5bf6e0eff540.zip
Makes /projects/:project_id/issues/new accept PUT requests for when serializing a form with a PUT _method hidden tag.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8528 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing')
-rw-r--r--test/integration/routing/issues_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb
index dc04b7713..1a96176e1 100644
--- a/test/integration/routing/issues_test.rb
+++ b/test/integration/routing/issues_test.rb
@@ -109,6 +109,10 @@ class RoutingIssuesTest < ActionController::IntegrationTest
{ :method => 'post', :path => "/projects/23/issues/new" },
{ :controller => 'issues', :action => 'new', :project_id => '23' }
)
+ assert_routing(
+ { :method => 'put', :path => "/projects/23/issues/new" },
+ { :controller => 'issues', :action => 'new', :project_id => '23' }
+ )
end
def test_issues_extra_actions