Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a8ef0845
Commit
a8ef0845
authored
Aug 19, 2021
by
Albert Salim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky order-dependent assertions
parent
d1ee8c6b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ee/spec/services/merge_requests/sync_code_owner_approval_rules_spec.rb
...ces/merge_requests/sync_code_owner_approval_rules_spec.rb
+3
-3
No files found.
ee/spec/services/merge_requests/sync_code_owner_approval_rules_spec.rb
View file @
a8ef0845
...
...
@@ -38,8 +38,8 @@ RSpec.describe MergeRequests::SyncCodeOwnerApprovalRules do
rb_rule
=
merge_request
.
approval_rules
.
code_owner
.
find_by
(
name:
rb_entry
.
pattern
)
doc_rule
=
merge_request
.
approval_rules
.
code_owner
.
find_by
(
name:
doc_entry
.
pattern
)
expect
(
rb_rule
.
users
).
to
eq
(
rb_owners
)
expect
(
doc_rule
.
users
).
to
eq
(
doc_owners
)
expect
(
rb_rule
.
users
).
to
match_array
(
rb_owners
)
expect
(
doc_rule
.
users
).
to
match_array
(
doc_owners
)
expect
(
rb_rule
.
groups
).
to
match_array
(
rb_group_owners
)
expect
(
doc_rule
.
groups
).
to
match_array
(
doc_group_owners
)
...
...
@@ -62,7 +62,7 @@ RSpec.describe MergeRequests::SyncCodeOwnerApprovalRules do
service
.
execute
expect
(
other_rule
.
reload
.
users
).
to
eq
(
rb_owners
)
expect
(
other_rule
.
reload
.
users
).
to
match_array
(
rb_owners
)
expect
(
other_rule
.
reload
.
groups
).
to
match_array
(
rb_group_owners
)
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment