Test failure.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10517 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-09-29 15:19:34 +00:00
parent d60b8c927c
commit 61248d1dbc
1 changed files with 2 additions and 2 deletions

View File

@ -684,14 +684,14 @@ class QueryTest < ActiveSupport::TestCase
assert_include 4, ids assert_include 4, ids
end end
def test_filter_on_relations_with_any_issue def test_filter_on_relations_with_any_issues
IssueRelation.delete_all IssueRelation.delete_all
IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(1), :issue_to => Issue.find(2)) IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(1), :issue_to => Issue.find(2))
IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(3), :issue_to => Issue.find(1)) IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(3), :issue_to => Issue.find(1))
query = Query.new(:name => '_') query = Query.new(:name => '_')
query.filters = {"relates" => {:operator => '*', :values => ['']}} query.filters = {"relates" => {:operator => '*', :values => ['']}}
assert_equal [1, 2, 3], find_issues_with_query(query).map(&:id) assert_equal [1, 2, 3], find_issues_with_query(query).map(&:id).sort
end end
def test_statement_should_be_nil_with_no_filters def test_statement_should_be_nil_with_no_filters