summaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-29 17:59:20 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-01-29 17:59:20 +0000
commit1e0a94de84197825e34c3dd01e5b2ef6112963d9 (patch)
tree73ee0fed22faa5bc9c0849b02445e7e250d7a2c3 /test/unit
parent5851f55eeba77cb0dc037e724875ee93b6ac8c9f (diff)
downloadredmine-1e0a94de84197825e34c3dd01e5b2ef6112963d9.tar.gz
redmine-1e0a94de84197825e34c3dd01e5b2ef6112963d9.zip
Fixe that filter "Assignee's group" doesn't work with group assignments (#13006).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11285 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/query_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index f728ed5c0..49e5cfc22 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -1124,7 +1124,7 @@ class QueryTest < ActiveSupport::TestCase
@query = IssueQuery.new(:name => '_')
@query.add_filter('member_of_group', '=', [@group.id.to_s])
- assert_query_statement_includes @query, "#{Issue.table_name}.assigned_to_id IN ('#{@user_in_group.id}','#{@second_user_in_group.id}')"
+ assert_query_statement_includes @query, "#{Issue.table_name}.assigned_to_id IN ('#{@user_in_group.id}','#{@second_user_in_group.id}','#{@group.id}')"
assert_find_issues_with_query_is_successful @query
end
@@ -1133,7 +1133,7 @@ class QueryTest < ActiveSupport::TestCase
@query.add_filter('member_of_group', '!*', [''])
# Users not in a group
- assert_query_statement_includes @query, "#{Issue.table_name}.assigned_to_id IS NULL OR #{Issue.table_name}.assigned_to_id NOT IN ('#{@user_in_group.id}','#{@second_user_in_group.id}','#{@user_in_group2.id}')"
+ assert_query_statement_includes @query, "#{Issue.table_name}.assigned_to_id IS NULL OR #{Issue.table_name}.assigned_to_id NOT IN ('#{@user_in_group.id}','#{@second_user_in_group.id}','#{@user_in_group2.id}','#{@group.id}','#{@group2.id}')"
assert_find_issues_with_query_is_successful @query
end
@@ -1142,7 +1142,7 @@ class QueryTest < ActiveSupport::TestCase
@query.add_filter('member_of_group', '*', [''])
# Only users in a group
- assert_query_statement_includes @query, "#{Issue.table_name}.assigned_to_id IN ('#{@user_in_group.id}','#{@second_user_in_group.id}','#{@user_in_group2.id}')"
+ assert_query_statement_includes @query, "#{Issue.table_name}.assigned_to_id IN ('#{@user_in_group.id}','#{@second_user_in_group.id}','#{@user_in_group2.id}','#{@group.id}','#{@group2.id}')"
assert_find_issues_with_query_is_successful @query
end