@@ -149,7 +149,6 class IssuesControllerTest < ActionController::TestCase | |||
|
149 | 149 | end |
|
150 | 150 | |
|
151 | 151 | def test_index_with_short_filters |
|
152 | ||
|
153 | 152 | to_test = { |
|
154 | 153 | 'status_id' => { |
|
155 | 154 | 'o' => { :op => 'o', :values => [''] }, |
@@ -183,9 +182,9 class IssuesControllerTest < ActionController::TestCase | |||
|
183 | 182 | 't-2' => { :op => 't-', :values => ['2'] }}, |
|
184 | 183 | 'created_on' => { |
|
185 | 184 | '>=2011-10-12' => { :op => '>=', :values => ['2011-10-12'] }, |
|
186 |
'<t |
|
|
187 |
'>t |
|
|
188 |
't |
|
|
185 | '<t-2' => { :op => '<t-', :values => ['2'] }, | |
|
186 | '>t-2' => { :op => '>t-', :values => ['2'] }, | |
|
187 | 't-2' => { :op => 't-', :values => ['2'] }}, | |
|
189 | 188 | 'cf_1' => { |
|
190 | 189 | 'c' => { :op => '=', :values => ['c'] }, |
|
191 | 190 | '!c' => { :op => '!', :values => ['c'] }, |
@@ -217,7 +216,6 class IssuesControllerTest < ActionController::TestCase | |||
|
217 | 216 | assert_equal(default_filter.merge({field => {:operator => expected[:op], :values => expected[:values]}}), query.filters) |
|
218 | 217 | end |
|
219 | 218 | end |
|
220 | ||
|
221 | 219 | end |
|
222 | 220 | |
|
223 | 221 | def test_index_with_project_and_empty_filters |
General Comments 0
You need to be logged in to leave comments.
Login now