[deploy] Skip pro memberships for spec (#7988)

This commit is contained in:
Molly Struve 2020-05-20 14:10:08 -05:00 committed by GitHub
parent 58ff5d44ba
commit 2b8fc7473d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,6 +108,8 @@ RSpec.describe Users::Delete, type: :service do
associations = []
names.each do |association|
next if association.name == :pro_membership
if user.public_send(association.name).present?
associations.push(*user.public_send(association.name))
else