summaryrefslogtreecommitdiffstats
path: root/test/unit/helpers/queries_helper_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-20 14:30:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-20 14:30:33 +0000
commitc32d75a697b39657b31292b68929f764c155aac1 (patch)
treed447c7a344de26d370b6ce9fd3f706a1ea923d0d /test/unit/helpers/queries_helper_test.rb
parentf86d4940e11f541cbb5244848025dad471457649 (diff)
downloadredmine-c32d75a697b39657b31292b68929f764c155aac1.tar.gz
redmine-c32d75a697b39657b31292b68929f764c155aac1.zip
Rewrites assertions.
git-svn-id: http://svn.redmine.org/redmine/trunk@13776 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers/queries_helper_test.rb')
-rw-r--r--test/unit/helpers/queries_helper_test.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/helpers/queries_helper_test.rb b/test/unit/helpers/queries_helper_test.rb
index 37aa5fd4f..eec1e1564 100644
--- a/test/unit/helpers/queries_helper_test.rb
+++ b/test/unit/helpers/queries_helper_test.rb
@@ -37,7 +37,7 @@ class QueriesHelperTest < ActionView::TestCase
def test_filters_options_for_select_should_not_group_regular_filters
with_locale 'en' do
options = filters_options_for_select(IssueQuery.new)
- assert_select_in options, 'option[value=status_id]:root'
+ assert_select_in options, 'optgroup option[value=status_id]', 0
assert_select_in options, 'option[value=status_id]', :text => 'Status'
end
end
@@ -53,8 +53,9 @@ class QueriesHelperTest < ActionView::TestCase
def test_filters_options_for_select_should_not_group_only_one_date_filter
with_locale 'en' do
options = filters_options_for_select(TimeEntryQuery.new)
+ assert_select_in options, 'option[value=spent_on]'
assert_select_in options, 'optgroup[label=?]', 'Date', 0
- assert_select_in options, 'option[value=spent_on]:root', :text => 'Date'
+ assert_select_in options, 'optgroup option[value=spent_on]', 0
end
end