From 2a43f1adbcbe155eb7c3c4a60c5c0c289dec2a0f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 20 Nov 2014 19:38:40 +0000 Subject: Quote values in DOM selectors for Nokogiri compatibility. git-svn-id: http://svn.redmine.org/redmine/trunk@13619 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/timelog_controller_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/functional/timelog_controller_test.rb') diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index d07f7a946..a60bd2b6b 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -37,7 +37,7 @@ class TimelogControllerTest < ActionController::TestCase assert_select 'input[name=?][type=hidden]', 'issue_id', 0 assert_select 'select[name=?]', 'time_entry[project_id]' do # blank option for project - assert_select 'option[value=]' + assert_select 'option[value=""]' end end @@ -67,7 +67,7 @@ class TimelogControllerTest < ActionController::TestCase assert_response :success assert_template 'new' assert_select 'select[name=?]', 'time_entry[project_id]' do - assert_select 'option[value=1][selected=selected]' + assert_select 'option[value="1"][selected=selected]' end end @@ -361,8 +361,8 @@ class TimelogControllerTest < ActionController::TestCase # Activities assert_select 'select[name=?]', 'time_entry[activity_id]' do - assert_select 'option[value=]', :text => '(No change)' - assert_select 'option[value=9]', :text => 'Design' + assert_select 'option[value=""]', :text => '(No change)' + assert_select 'option[value="9"]', :text => 'Design' end end end -- cgit v1.2.3