Project

General

Profile

Feature #31559 ยป 31559.patch

Go MAEDA, 2019-06-29 11:15

View differences:

app/views/enumerations/index.api.rsb
api.id enumeration.id
api.name enumeration.name
api.is_default enumeration.is_default
api.active enumeration.active
render_api_custom_values enumeration.visible_custom_field_values, api
end
end
app/views/workflows/permissions.html.erb
<label><%=l(:label_role)%>:
<%= options_for_workflow_select 'role_id[]', Role.sorted.select(&:consider_workflow?), @roles, :id => 'role_id', :class => 'expandable' %>
</label>
<a href="#" data-expands="#role_id"><span class="toggle-multiselect icon-only icon-toggle-plus"></a>
<a href="#" data-expands="#role_id"><span class="toggle-multiselect icon-only icon-toggle-plus"></span></a>
<label><%=l(:label_tracker)%>:
<%= options_for_workflow_select 'tracker_id[]', Tracker.sorted, @trackers, :id => 'tracker_id', :class => 'expandable' %>
</label>
<a href="#" data-expands="#tracker_id"><span class="toggle-multiselect icon-only icon-toggle-plus"></a>
<a href="#" data-expands="#tracker_id"><span class="toggle-multiselect icon-only icon-toggle-plus"></span></a>
<%= submit_tag l(:button_edit), :name => nil %>
test/integration/api_test/enumerations_test.rb
assert_response :success
assert_equal 'application/xml', response.content_type
assert_select 'issue_priorities[type=array]' do
assert_select 'issue_priority' do
assert_select 'issue_priority:nth-of-type(3)' do
assert_select 'id', :text => '6'
assert_select 'name', :text => 'High'
assert_select 'active', :text => 'true'
end
assert_select 'issue_priority:nth-of-type(6)' do
assert_select 'id', :text => '15'
assert_select 'name', :text => 'Inactive Priority'
assert_select 'active', :text => 'false'
end
end
end
    (1-1/1)