diff options
Diffstat (limited to 'test/functional/boards_controller_test.rb')
-rw-r--r-- | test/functional/boards_controller_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb index 9563b26d5..c585760af 100644 --- a/test/functional/boards_controller_test.rb +++ b/test/functional/boards_controller_test.rb @@ -117,9 +117,13 @@ class BoardsControllerTest < ActionController::TestCase assert_select 'select[name=?]', 'board[parent_id]' do assert_select 'option', (Project.find(1).boards.size + 1) - assert_select 'option[value=""]', :text => ' ' + assert_select 'option[value=""]' assert_select 'option[value="1"]', :text => 'Help' end + + # replaced by nokogiri, not easy to test in DOM assertions + assert_not_include '<option value=""></option>', response.body + assert_include '<option value=""> </option>', response.body end def test_new_without_project_boards |