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.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index db6173bae..85bf9b173 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -397,8 +397,8 @@ class QueryTest < ActiveSupport::TestCase
group2 = Group.generate!.reload
expected_group_list = [
- [group1.name, group1.id],
- [group2.name, group2.id]
+ [group1.name, group1.id.to_s],
+ [group2.name, group2.id.to_s]
]
assert_equal expected_group_list.sort, @query.available_filters["member_of_group"][:values].sort
end
@@ -415,14 +415,14 @@ class QueryTest < ActiveSupport::TestCase
end
should "have a list of the Roles as values" do
- assert @query.available_filters["assigned_to_role"][:values].include?(['Manager',1])
- assert @query.available_filters["assigned_to_role"][:values].include?(['Developer',2])
- assert @query.available_filters["assigned_to_role"][:values].include?(['Reporter',3])
+ assert @query.available_filters["assigned_to_role"][:values].include?(['Manager','1'])
+ assert @query.available_filters["assigned_to_role"][:values].include?(['Developer','2'])
+ assert @query.available_filters["assigned_to_role"][:values].include?(['Reporter','3'])
end
should "not include the built in Roles as values" do
- assert ! @query.available_filters["assigned_to_role"][:values].include?(['Non member',4])
- assert ! @query.available_filters["assigned_to_role"][:values].include?(['Anonymous',5])
+ assert ! @query.available_filters["assigned_to_role"][:values].include?(['Non member','4'])
+ assert ! @query.available_filters["assigned_to_role"][:values].include?(['Anonymous','5'])
end
end