-<%= labelled_form_for @project, as: 'project_issue_tracking' do |f| %>
+<%= labelled_form_for @project, html: {id: 'project_issue_tracking' } do |f| %>
<%= hidden_field_tag 'tab', 'issues' %>
<% unless @trackers.empty? %>
assert_select 'select#project_custom_field_values_3', :count => 0
end
+ def test_settings_issue_tracking
+ @request.session[:user_id] = 1
+ project = Project.find(1)
+ project.default_version_id = 3
+ project.save!
+
+ get(
+ :settings,
+ :params => {
+ :id => 'ecookbook',
+ :tab => 'issues',
+ }
+ )
+ assert_response :success
+
+ assert_select 'form[id=?]', 'project_issue_tracking', 1
+ assert_select 'input[name=?]', 'project[tracker_ids][]'
+ assert_select 'input[name=?]', 'project[issue_custom_field_ids][]'
+ assert_select 'select[name=?]', 'project[default_version_id]', 1
+ assert_select 'select[name=?]', 'project[default_assigned_to_id]', 1
+ end
+
def test_update
@request.session[:user_id] = 2 # manager
post(