diff options
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/query_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index 3ccfc753a..9e97a4744 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -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 |