summaryrefslogtreecommitdiffstats
path: root/test/integration/routing
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-14 08:03:51 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-02-14 08:03:51 +0000
commit3da7b1bc2882cfb02c5068680979158322242398 (patch)
tree87ed265520ff93243dbd7c1074e47f5e37c7abac /test/integration/routing
parentb17883a2dff6cd49ea407b449ac0e97dca38e56a (diff)
downloadredmine-3da7b1bc2882cfb02c5068680979158322242398.tar.gz
redmine-3da7b1bc2882cfb02c5068680979158322242398.zip
Implements /issues/new form for creating issues outside a project (#1003).
git-svn-id: http://svn.redmine.org/redmine/trunk@13999 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 1b59f3214..c7d7523a7 100644
--- a/test/integration/routing/issues_test.rb
+++ b/test/integration/routing/issues_test.rb
@@ -27,6 +27,9 @@ class RoutingIssuesTest < Redmine::RoutingTest
should_route 'GET /issues/64.pdf' => 'issues#show', :id => '64', :format => 'pdf'
should_route 'GET /issues/64.atom' => 'issues#show', :id => '64', :format => 'atom'
+ should_route 'GET /issues/new' => 'issues#new'
+ should_route 'POST /issues' => 'issues#create'
+
should_route 'GET /issues/64/edit' => 'issues#edit', :id => '64'
should_route 'PUT /issues/64' => 'issues#update', :id => '64'
should_route 'DELETE /issues/64' => 'issues#destroy', :id => '64'
@@ -50,6 +53,7 @@ class RoutingIssuesTest < Redmine::RoutingTest
end
def test_issues_form_update
+ should_route 'POST /issues/new' => 'issues#new'
should_route 'POST /projects/23/issues/new' => 'issues#new', :project_id => '23'
should_route 'PATCH /issues/23/edit' => 'issues#edit', :id => '23'
end