Commit a818d996 authored by Mark Chao's avatar Mark Chao

Use existing constant

Fix spec
parent 0e186a05
......@@ -148,7 +148,7 @@ module Gitlab
end
def find_or_create_rule
rule = target.approval_rules.regular.find_or_initialize_by(name: 'Default')
rule = target.approval_rules.regular.find_or_initialize_by(name: ApprovalRuleLike::DEFAULT_NAME)
unless rule.persisted?
rule.approvals_required = target.approvals_before_merge || 0
......
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