@@ -1546,18 +1546,6 class IssuesControllerTest < ActionController::TestCase | |||
|
1546 | 1546 | assert_select 'input[name=was_default_status][value=1]' |
|
1547 | 1547 | end |
|
1548 | 1548 | |
|
1549 | def test_new_should_select_default_status | |
|
1550 | @request.session[:user_id] = 2 | |
|
1551 | ||
|
1552 | get :new, :project_id => 1 | |
|
1553 | assert_response :success | |
|
1554 | assert_template 'new' | |
|
1555 | assert_select 'select[name=?]', 'issue[status_id]' do | |
|
1556 | assert_select 'option[value=1][selected=selected]' | |
|
1557 | end | |
|
1558 | assert_select 'input[name=was_default_status][value=1]' | |
|
1559 | end | |
|
1560 | ||
|
1561 | 1549 | def test_get_new_with_list_custom_field |
|
1562 | 1550 | @request.session[:user_id] = 2 |
|
1563 | 1551 | get :new, :project_id => 1, :tracker_id => 1 |
General Comments 0
You need to be logged in to leave comments.
Login now