Adds interval ratio setting to progressbar custom field (#42335).

Patch by Marius BĂLTEANU (user:marius.balteanu) and Go MAEDA (user:maeda).


git-svn-id: https://svn.redmine.org/redmine/trunk@23686 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-04-19 08:46:02 +00:00
parent d76cf64516
commit ce94a1d71a
5 changed files with 83 additions and 5 deletions

View File

@@ -282,6 +282,23 @@ class CustomFieldsControllerTest < Redmine::ControllerTest
assert_select '[name=?]', 'custom_field[full_width_layout]', 0
end
def test_setting_ratio_interval_should_be_present_only_for_progressbar_format
get(
:new,
:params => {
:type => 'IssueCustomField',
:custom_field => {
:field_format => 'progressbar'
}
}
)
assert_response :success
assert_select '[name=?]', 'custom_field[ratio_interval]' do
assert_select 'option[value=?]', '5'
assert_select 'option[value=?][selected=?]', '10', 'selected'
end
end
def test_new_js
get(
:new,