diff options
author | Go MAEDA <maeda@farend.jp> | 2020-12-10 15:18:49 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-12-10 15:18:49 +0000 |
commit | f8bf009cd61ef78da92732390cc1def5c7b4c18b (patch) | |
tree | 0620ab3038ca237bd2f7a9a69ee1ac68f3426714 /test/helpers/issues_helper_test.rb | |
parent | 0cc5b52ac5536ab21a7683082223f1a1c5638a0b (diff) | |
download | redmine-f8bf009cd61ef78da92732390cc1def5c7b4c18b.tar.gz redmine-f8bf009cd61ef78da92732390cc1def5c7b4c18b.zip |
Allow to add subtask from context menu (#34303).
Patch by Go MAEDA and Takenori TAKAKI.
git-svn-id: http://svn.redmine.org/redmine/trunk@20617 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/helpers/issues_helper_test.rb')
-rw-r--r-- | test/helpers/issues_helper_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb index 4fe603454..fdd5f3598 100644 --- a/test/helpers/issues_helper_test.rb +++ b/test/helpers/issues_helper_test.rb @@ -360,4 +360,11 @@ class IssuesHelperTest < Redmine::HelperTest assert_equal '06/06/2019', issue_due_date_details(issue) end end + + def test_url_for_new_subtask + issue = Issue.find(1) + params = {:issue => {:parent_issue_id => issue.id, :tracker_id => issue.tracker.id}} + assert_equal new_project_issue_path(issue.project, params), + url_for_new_subtask(issue) + end end |