Don't change Customer factory name generating logic

This commit is contained in:
Matt-Yorkley
2022-02-15 15:41:48 +00:00
committed by Maikel Linke
parent feaa92406a
commit fd815a6af6
2 changed files with 1 additions and 3 deletions

View File

@@ -2,8 +2,6 @@
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) }

View File

@@ -19,7 +19,7 @@ describe 'Subscriptions' do
let!(:subscription) {
create(:subscription, shop: shop, with_items: true, with_proxy_orders: true)
}
let!(:customer) { create(:customer) }
let!(:customer) { create(:customer, first_name: "Timmy", last_name: "Test") }
let!(:other_subscription) {
create(:subscription, shop: shop, customer: customer, with_items: true,
with_proxy_orders: true)