[Test] spec/models/group_spec.rb | Group scopes .excluding_restricted_visibility_levels_for_user when restricted_visibility_level is set to private and user is an admin returns all groups
Test metadata (don't modify)
Field |
Value |
File URL |
spec/models/group_spec.rb#L1165 |
Filename |
spec/models/group_spec.rb |
Description |
Group scopes .excluding_restricted_visibility_levels_for_user when restricted_visibility_level is set to private and user is an admin returns all groups |
Test level |
unit |
Hash |
49b9b55d912a0ef15e55a936035cfc44fba613976 |
Reference duration |
0.19 seconds |
Expected duration |
< 45.4 seconds |
Stack trace
Failure/Error:
expect(described_class.excluding_restricted_visibility_levels_for_user(admin_user)).to eq(
[private_group, internal_group, group]
)
expected: [#<Group id:3310 @group1>, #<Group id:3311 @group2>, #<Group id:3314 @group5>]
got: #<ActiveRecord::Relation [#<Group id:3314 @group5>, #<Group id:3310 @group1>, #<Group id:3311 @group2>]>
(compared using ==)
Diff:
@@ -1 +1 @@
-[#<Group id:3310 @group1>, #<Group id:3311 @group2>, #<Group id:3314 @group5>]
+[#<Group id:3314 @group5>, #<Group id:3310 @group1>, #<Group id:3311 @group2>]
Reports (1)
- 2024-03-17: https://gitlab.com/gitlab-org/gitlab/-/jobs/6412549474 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/1216834699)