mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 16:56:00 +01:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user