diff --git a/spec/factories/order_factory.rb b/spec/factories/order_factory.rb index 5c769df5a9..04885c0965 100644 --- a/spec/factories/order_factory.rb +++ b/spec/factories/order_factory.rb @@ -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| diff --git a/spec/factories/stock_factory.rb b/spec/factories/stock_factory.rb index c288121873..8497ec02f4 100644 --- a/spec/factories/stock_factory.rb +++ b/spec/factories/stock_factory.rb @@ -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) }