mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Replace ignore with transient according to changes in factory bot v5
This commit is contained in:
@@ -22,8 +22,8 @@ FactoryBot.define do
|
||||
bill_address
|
||||
ship_address
|
||||
|
||||
ignore do
|
||||
line_items_count 5
|
||||
transient do
|
||||
line_items_count { 5 }
|
||||
end
|
||||
|
||||
after(:create) do |order, evaluator|
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
FactoryBot.define do
|
||||
factory :stock_package, class: OrderManagement::Stock::Package do
|
||||
ignore do
|
||||
transient do
|
||||
stock_location { build(:stock_location) }
|
||||
order { create(:order_with_line_items, line_items_count: 2) }
|
||||
contents []
|
||||
contents { [] }
|
||||
end
|
||||
|
||||
initialize_with { new(stock_location, order, contents) }
|
||||
|
||||
Reference in New Issue
Block a user