Commit 650ec38e authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Remove hardcoded name in spec

The name is created from a sequence and that sequence is not reset for
every spec file. This caused the spec to fail when some approval rules
are created in preceding specs.
parent 54185a48
......@@ -103,7 +103,7 @@ RSpec.describe 'Query.project.mergeRequest.approvalState' do
'eligibleApprovers' => [{ 'id' => global_id_of(user) }],
'groups' => { 'nodes' => [] },
'id' => global_id_of(code_owner_rule),
'name' => '*-1.js',
'name' => code_owner_rule.name,
'overridden' => false,
'section' => 'codeowners',
'sourceRule' => nil,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment