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