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