summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorAhmad Sherif <me@ahmadsherif.com>2016-11-21 16:26:12 +0200
committerAhmad Sherif <me@ahmadsherif.com>2016-11-23 12:59:13 +0200
commit2ea5ef0ba4ee00b5551b88a6b9a68e045bf4b3f4 (patch)
tree4acb1567e751c407089f6f150fd8860b2478f762 /db
parent747959a832bddcdffba3e7c687b66904e8c6dbf9 (diff)
downloadgitlab-ce-2ea5ef0ba4ee00b5551b88a6b9a68e045bf4b3f4.tar.gz
Update ProjectTeam#fetch_members to use project authorizationsfix/drop-project-authorized-for-user
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/development/06_teams.rb33
1 files changed, 19 insertions, 14 deletions
diff --git a/db/fixtures/development/06_teams.rb b/db/fixtures/development/06_teams.rb
index 9739a5ac8d5..04c3690e152 100644
--- a/db/fixtures/development/06_teams.rb
+++ b/db/fixtures/development/06_teams.rb
@@ -1,20 +1,25 @@
-Gitlab::Seeder.quiet do
- Group.all.each do |group|
- User.all.sample(4).each do |user|
- if group.add_user(user, Gitlab::Access.values.sample).persisted?
- print '.'
- else
- print 'F'
+require 'sidekiq/testing'
+require './db/fixtures/support/serialized_transaction'
+
+Sidekiq::Testing.inline! do
+ Gitlab::Seeder.quiet do
+ Group.all.each do |group|
+ User.all.sample(4).each do |user|
+ if group.add_user(user, Gitlab::Access.values.sample).persisted?
+ print '.'
+ else
+ print 'F'
+ end
end
end
- end
- Project.all.each do |project|
- User.all.sample(4).each do |user|
- if project.team << [user, Gitlab::Access.values.sample]
- print '.'
- else
- print 'F'
+ Project.all.each do |project|
+ User.all.sample(4).each do |user|
+ if project.team << [user, Gitlab::Access.values.sample]
+ print '.'
+ else
+ print 'F'
+ end
end
end
end