summaryrefslogtreecommitdiffstats
path: root/test/unit/query_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r--test/unit/query_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index f5d9847d6..173367a4b 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -382,6 +382,12 @@ class QueryTest < ActiveSupport::TestCase
assert users[:values].map{|u|u[1]}.include?("3")
end
+ should "include visible projects in cross-project view" do
+ projects = @query.available_filters["project_id"]
+ assert_not_nil projects
+ assert projects[:values].map{|u|u[1]}.include?("1")
+ end
+
context "'member_of_group' filter" do
should "be present" do
assert @query.available_filters.keys.include?("member_of_group")