summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-02-01 04:22:22 +0000
committerGo MAEDA <maeda@farend.jp>2021-02-01 04:22:22 +0000
commit097e75987b0c9f2dc7334aa1c23a5b3ae8b29163 (patch)
tree77cc8223bb1f190fd209d13a86cafe8ffe98eaa7 /test/functional/issues_controller_test.rb
parenta2349681ee97fee56a6854146546d178d1cf4fd5 (diff)
downloadredmine-097e75987b0c9f2dc7334aa1c23a5b3ae8b29163.tar.gz
redmine-097e75987b0c9f2dc7334aa1c23a5b3ae8b29163.zip
Fix project selector on global new issue page not showing all visible projects (#33419).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@20733 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 1762c7efd..a8296b9bc 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -3170,6 +3170,18 @@ class IssuesControllerTest < Redmine::ControllerTest
end
end
+ def test_get_new_global_should_show_all_projects
+ @request.session[:user_id] = 1
+ get :new
+
+ assert_response :success
+
+ assert_select 'select[name=?]', 'issue[project_id]' do
+ assert_select 'option[value=?]', '1'
+ assert_select 'option[value=?]', '2'
+ end
+ end
+
def test_get_new_should_show_project_selector_for_project_with_subprojects
@request.session[:user_id] = 2
get(