foodsoft/spec/factories/delivery.rb

9 lines
202 B
Ruby
Raw Normal View History

2022-10-06 16:08:32 +02:00
require 'factory_bot'
FactoryBot.define do
factory :delivery do
supplier { create :supplier }
invoice { create :invoice }
date { Faker::Date.backward(days: 14) }
end
end