@@ -37,7 +37,7 class QueriesHelperTest < ActionView::TestCase | |||
|
37 | 37 | def test_filters_options_for_select_should_not_group_regular_filters |
|
38 | 38 | with_locale 'en' do |
|
39 | 39 | options = filters_options_for_select(IssueQuery.new) |
|
40 |
assert_select_in options, 'option[value=status_id] |
|
|
40 | assert_select_in options, 'optgroup option[value=status_id]', 0 | |
|
41 | 41 | assert_select_in options, 'option[value=status_id]', :text => 'Status' |
|
42 | 42 | end |
|
43 | 43 | end |
@@ -53,8 +53,9 class QueriesHelperTest < ActionView::TestCase | |||
|
53 | 53 | def test_filters_options_for_select_should_not_group_only_one_date_filter |
|
54 | 54 | with_locale 'en' do |
|
55 | 55 | options = filters_options_for_select(TimeEntryQuery.new) |
|
56 | assert_select_in options, 'option[value=spent_on]' | |
|
56 | 57 | assert_select_in options, 'optgroup[label=?]', 'Date', 0 |
|
57 |
assert_select_in options, 'option[value=spent_on] |
|
|
58 | assert_select_in options, 'optgroup option[value=spent_on]', 0 | |
|
58 | 59 | end |
|
59 | 60 | end |
|
60 | 61 |
General Comments 0
You need to be logged in to leave comments.
Login now