Add additional model and integration tests
This commit adds new tests for a better coverage. integration/ * home * supplier models/ * article * delivery * group_order_article * supplier also adds a new factory for delivery Co-authored-by: viehlieb <pf@pragma-shift.net> Co-authored-by: Tobias Kneuker <tk@pragma-shift.net>
This commit is contained in:
parent
9a46640d3b
commit
c6560e0cea
8 changed files with 167 additions and 7 deletions
8
spec/factories/delivery.rb
Normal file
8
spec/factories/delivery.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
require 'factory_bot'
|
||||
|
||||
FactoryBot.define do
|
||||
factory :delivery do
|
||||
supplier { create :supplier }
|
||||
date { Time.now }
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue