mirror of
https://github.com/redmine/redmine.git
synced 2025-11-09 14:56:01 +01:00
Test for r19363 (#32546).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19364 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1153,6 +1153,10 @@ class QueryTest < ActiveSupport::TestCase
|
||||
query = IssueQuery.new(:name => '_')
|
||||
query.filters = {"relates" => {:operator => '=', :values => ['2']}}
|
||||
assert_equal [1], find_issues_with_query(query).map(&:id).sort
|
||||
|
||||
query = IssueQuery.new(:name => '_')
|
||||
query.filters = {"relates" => {:operator => '!', :values => ['1']}}
|
||||
assert_equal Issue.where.not(:id => [2, 3]).order(:id).ids, find_issues_with_query(query).map(&:id).sort
|
||||
end
|
||||
|
||||
def test_filter_on_relations_with_any_issues_in_a_project
|
||||
|
||||
Reference in New Issue
Block a user