summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-20 19:38:40 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-20 19:38:40 +0000
commit2a43f1adbcbe155eb7c3c4a60c5c0c289dec2a0f (patch)
tree908919107cfd6d6095f648dba895e476a512161a /test/functional/timelog_controller_test.rb
parenta7559e669f4f131ccec74b585973492665a21daa (diff)
downloadredmine-2a43f1adbcbe155eb7c3c4a60c5c0c289dec2a0f.tar.gz
redmine-2a43f1adbcbe155eb7c3c4a60c5c0c289dec2a0f.zip
Quote values in DOM selectors for Nokogiri compatibility.
git-svn-id: http://svn.redmine.org/redmine/trunk@13619 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r--test/functional/timelog_controller_test.rb8
1 files changed, 4 insertions, 4 deletions
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