summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-05-29 15:06:28 +0000
committerGo MAEDA <maeda@farend.jp>2024-05-29 15:06:28 +0000
commita73eb69648cb8f35dd5519c64a200949de9b18ac (patch)
treef0da98409f943a35e639e1005dac479e9bc2718d /test/functional/issues_controller_test.rb
parent3acc94914f21b65c3ae98e0e358802b561b53ae3 (diff)
downloadredmine-a73eb69648cb8f35dd5519c64a200949de9b18ac.tar.gz
redmine-a73eb69648cb8f35dd5519c64a200949de9b18ac.zip
Introduce configuration for done ratio options interval (#31756).
Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22849 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 53cfd8146..12ec7a6d5 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -8736,4 +8736,19 @@ class IssuesControllerTest < Redmine::ControllerTest
end
end
end
+
+ def test_get_new_with_issue_field_five_percent_increments
+ with_settings :issue_done_ratio => 'issue_field', :issue_done_ratio_interval => 5 do
+ @request.session[:user_id] = 1
+ get :new
+ assert_response :success
+
+ assert_select 'select#issue_done_ratio' do
+ assert_select 'option', count: 21
+ assert_select 'option:nth-of-type(1)', text: '0 %'
+ assert_select 'option:nth-of-type(2)', text: '5 %'
+ assert_select 'option:nth-of-type(21)', text: '100 %'
+ end
+ end
+ end
end