From 53b34f63c7c7b683dd060d299b9721eb2e2a7a90 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Tue, 13 Apr 2021 07:20:47 +0000 Subject: "Copy link" feature for issues list (#34932). Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@20939 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/routes_helper_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/helpers') diff --git a/test/helpers/routes_helper_test.rb b/test/helpers/routes_helper_test.rb index 653c8f2e3..9f1ac7280 100644 --- a/test/helpers/routes_helper_test.rb +++ b/test/helpers/routes_helper_test.rb @@ -40,4 +40,11 @@ class RoutesHelperTest < Redmine::HelperTest assert_equal '/issues/1/time_entries/new', _new_time_entry_path(nil, Issue.find(1)) assert_equal '/time_entries/new', _new_time_entry_path(nil, nil) end + + def test_project_issues_url + assert_equal 'http://test.host/projects/ecookbook/issues', _project_issues_url(Project.find(1)) + assert_equal 'http://test.host/issues', _project_issues_url(nil) + assert_equal 'http://test.host/projects/ecookbook/issues?set_filter=1', _project_issues_url(Project.find(1), set_filter: 1) + assert_equal 'http://test.host/issues?set_filter=1', _project_issues_url(nil, set_filter: 1) + end end -- cgit v1.2.3