Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f41ab840
Commit
f41ab840
authored
Jan 20, 2022
by
charlie ablett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace owner with first_owner in factories
parent
68755b38
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec/factories/go_module_commits.rb
spec/factories/go_module_commits.rb
+2
-2
spec/factories/projects.rb
spec/factories/projects.rb
+1
-1
No files found.
spec/factories/go_module_commits.rb
View file @
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
...
...
spec/factories/projects.rb
View file @
f41ab840
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment