Index: app/controllers/trackers_controller.rb =================================================================== diff --git a/trunk/app/controllers/trackers_controller.rb b/trunk/app/controllers/trackers_controller.rb --- a/trunk/app/controllers/trackers_controller.rb (revision 17479) +++ b/trunk/app/controllers/trackers_controller.rb (working copy) @@ -32,7 +32,7 @@ end def new - @tracker ||= Tracker.new + @tracker ||= Tracker.new(:default_status => IssueStatus.sorted.first) @tracker.safe_attributes = params[:tracker] @trackers = Tracker.sorted.to_a @projects = Project.all Index: test/functional/trackers_controller_test.rb =================================================================== diff --git a/trunk/test/functional/trackers_controller_test.rb b/trunk/test/functional/trackers_controller_test.rb --- a/trunk/test/functional/trackers_controller_test.rb (revision 17479) +++ b/trunk/test/functional/trackers_controller_test.rb (working copy) @@ -47,6 +47,9 @@ get :new assert_response :success assert_select 'input[name=?]', 'tracker[name]' + assert_select 'select[name=?]', 'tracker[default_status_id]' do + assert_select 'option[value=?][selected=selected]', "#{IssueStatus.sorted.first.id}" + end end def test_create