diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-02 07:38:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-02 07:38:43 +0000 |
commit | 53f9979696f0455408b300677c002b9f2d6ddab5 (patch) | |
tree | 57d3113ec994c12225c0e7c87785904ba6184f82 /test/functional/issues_controller_test.rb | |
parent | 55bbfa19b6ed97ec16ea5859a2e35a48ccd960a1 (diff) | |
download | redmine-53f9979696f0455408b300677c002b9f2d6ddab5.tar.gz redmine-53f9979696f0455408b300677c002b9f2d6ddab5.zip |
Use valid filters in #test_index_with_sort_filters.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9050 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 04df391a1..b52cca5e8 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -149,7 +149,6 @@ class IssuesControllerTest < ActionController::TestCase end def test_index_with_short_filters - to_test = { 'status_id' => { 'o' => { :op => 'o', :values => [''] }, @@ -183,9 +182,9 @@ class IssuesControllerTest < ActionController::TestCase 't-2' => { :op => 't-', :values => ['2'] }}, 'created_on' => { '>=2011-10-12' => { :op => '>=', :values => ['2011-10-12'] }, - '<t+2' => { :op => '=', :values => ['<t+2'] }, - '>t+2' => { :op => '=', :values => ['>t+2'] }, - 't+2' => { :op => 't', :values => ['+2'] }}, + '<t-2' => { :op => '<t-', :values => ['2'] }, + '>t-2' => { :op => '>t-', :values => ['2'] }, + 't-2' => { :op => 't-', :values => ['2'] }}, 'cf_1' => { 'c' => { :op => '=', :values => ['c'] }, '!c' => { :op => '!', :values => ['c'] }, @@ -217,7 +216,6 @@ class IssuesControllerTest < ActionController::TestCase assert_equal(default_filter.merge({field => {:operator => expected[:op], :values => expected[:values]}}), query.filters) end end - end def test_index_with_project_and_empty_filters |