Merged r9050 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.3-stable@9121 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
6f30f85f96
commit
fc584eb3ad
@ -147,7 +147,6 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_index_with_short_filters
|
def test_index_with_short_filters
|
||||||
|
|
||||||
to_test = {
|
to_test = {
|
||||||
'status_id' => {
|
'status_id' => {
|
||||||
'o' => { :op => 'o', :values => [''] },
|
'o' => { :op => 'o', :values => [''] },
|
||||||
@ -181,9 +180,9 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
't-2' => { :op => 't-', :values => ['2'] }},
|
't-2' => { :op => 't-', :values => ['2'] }},
|
||||||
'created_on' => {
|
'created_on' => {
|
||||||
'>=2011-10-12' => { :op => '>=', :values => ['2011-10-12'] },
|
'>=2011-10-12' => { :op => '>=', :values => ['2011-10-12'] },
|
||||||
'<t+2' => { :op => '=', :values => ['<t+2'] },
|
'<t-2' => { :op => '<t-', :values => ['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'] }},
|
||||||
'cf_1' => {
|
'cf_1' => {
|
||||||
'c' => { :op => '=', :values => ['c'] },
|
'c' => { :op => '=', :values => ['c'] },
|
||||||
'!c' => { :op => '!', :values => ['c'] },
|
'!c' => { :op => '!', :values => ['c'] },
|
||||||
@ -215,7 +214,6 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
assert_equal(default_filter.merge({field => {:operator => expected[:op], :values => expected[:values]}}), query.filters)
|
assert_equal(default_filter.merge({field => {:operator => expected[:op], :values => expected[:values]}}), query.filters)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_index_with_project_and_empty_filters
|
def test_index_with_project_and_empty_filters
|
||||||
|
Loading…
x
Reference in New Issue
Block a user