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