Commit 828ba8c9 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'zj-fixture-fork' into 'master'

Fixture for forks

See merge request gitlab-org/gitlab-ce!23613
parents 6caaca1d b281627f
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
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