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 ...@@ -103,7 +103,7 @@ RSpec.describe 'Query.project.mergeRequest.approvalState' do
'eligibleApprovers' => [{ 'id' => global_id_of(user) }], 'eligibleApprovers' => [{ 'id' => global_id_of(user) }],
'groups' => { 'nodes' => [] }, 'groups' => { 'nodes' => [] },
'id' => global_id_of(code_owner_rule), 'id' => global_id_of(code_owner_rule),
'name' => '*-1.js', 'name' => code_owner_rule.name,
'overridden' => false, 'overridden' => false,
'section' => 'codeowners', 'section' => 'codeowners',
'sourceRule' => nil, '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