Update customer factory

This commit is contained in:
François Turbelin
2022-01-20 23:30:17 +01:00
committed by Maikel Linke
parent eefd9891d6
commit 75345a95af
2 changed files with 13 additions and 8 deletions

View File

@@ -113,14 +113,6 @@ FactoryBot.define do
property
end
factory :customer, class: Customer do
email { generate(:random_email) }
enterprise
code { SecureRandom.base64(150) }
user
bill_address { create(:address) }
end
factory :stripe_account do
enterprise { FactoryBot.create(:distributor_enterprise) }
stripe_user_id { "abc123" }

View File

@@ -0,0 +1,13 @@
# frozen_string_literal: true
FactoryBot.define do
factory :customer, class: Customer do
first_name { FFaker::Name.first_name }
last_name { FFaker::Name.last_name }
email { generate(:random_email) }
enterprise
code { SecureRandom.base64(150) }
user
bill_address { create(:address) }
end
end