summaryrefslogtreecommitdiffstats
path: root/test/functional/boards_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/boards_controller_test.rb')
-rw-r--r--test/functional/boards_controller_test.rb6
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 => '&nbsp;'
+ assert_select 'option[value=""]'
assert_select 'option[value="1"]', :text => 'Help'
end
+
+ # &nbsp; replaced by nokogiri, not easy to test in DOM assertions
+ assert_not_include '<option value=""></option>', response.body
+ assert_include '<option value="">&nbsp;</option>', response.body
end
def test_new_without_project_boards