Commit 4bf263ee authored by Imre Farkas's avatar Imre Farkas

Merge branch '350603-cablett-project-owner-specs-3' into 'master'

Replace owner with first_owner in factories

See merge request gitlab-org/gitlab!78629
parents b2775de2 f41ab840
......@@ -17,7 +17,7 @@ FactoryBot.define do
service do
Files::MultiService.new(
project,
project.owner,
project.first_owner,
commit_message: message,
start_branch: project.repository.root_ref || 'master',
branch_name: project.repository.root_ref || 'master',
......@@ -38,7 +38,7 @@ FactoryBot.define do
commit = project.repository.commit_by(oid: r[:result])
if tag
r = Tags::CreateService.new(project, project.owner).execute(tag, commit.sha, tag_message)
r = Tags::CreateService.new(project, project.first_owner).execute(tag, commit.sha, tag_message)
raise "operation failed: #{r}" unless r[:status] == :success
end
......
......@@ -82,7 +82,7 @@ FactoryBot.define do
# user have access to the project. Our specs don't use said service class,
# thus we must manually refresh things here.
unless project.group || project.pending_delete
project.add_maintainer(project.owner)
project.add_maintainer(project.first_owner)
end
project.group&.refresh_members_authorized_projects
......
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