lib/physical/spec_support/factories/package_factory.rb in physical-0.3.1 vs lib/physical/spec_support/factories/package_factory.rb in physical-0.3.2
- old
+ new
@@ -1,7 +1,9 @@
# frozen_string_literal: true
require 'factory_bot'
+require_relative 'box_factory'
+require_relative 'item_factory'
FactoryBot.define do
factory :physical_package, class: "Physical::Package" do
container { FactoryBot.build(:physical_box) }
items { build_list(:physical_item, 2) }