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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
828ba8c9
Commit
828ba8c9
authored
Dec 06, 2018
by
Douwe Maan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj-fixture-fork' into 'master'
Fixture for forks See merge request gitlab-org/gitlab-ce!23613
parents
6caaca1d
b281627f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
db/fixtures/development/24_forks.rb
db/fixtures/development/24_forks.rb
+16
-0
No files found.
db/fixtures/development/24_forks.rb
0 → 100644
View file @
828ba8c9
require
'./spec/support/sidekiq'
Sidekiq
::
Testing
.
inline!
do
Gitlab
::
Seeder
.
quiet
do
User
.
all
.
sample
(
10
).
each
do
|
user
|
source_project
=
Project
.
public_only
.
sample
fork_project
=
Projects
::
ForkService
.
new
(
source_project
,
user
,
namespace:
user
.
namespace
).
execute
if
fork_project
.
valid?
puts
'.'
else
puts
'F'
end
end
end
end
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