mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Don't change Customer factory name generating logic
This commit is contained in:
committed by
Maikel Linke
parent
feaa92406a
commit
fd815a6af6
@@ -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) }
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user