lib/physical/spec_support/factories/shipment_factory.rb in physical-0.5.0 vs lib/physical/spec_support/factories/shipment_factory.rb in physical-0.5.1
- old
+ new
@@ -2,10 +2,9 @@
FactoryBot.define do
factory :physical_shipment, class: "Physical::Shipment" do
origin { FactoryBot.build(:physical_location) }
destination { FactoryBot.build(:physical_location) }
- pallets { build_list(:physical_pallet, 1) } # deprecated, will be removed
packages { build_list(:physical_package, 2) }
service_code { "usps_priority_mail" }
initialize_with { new(**attributes) }
trait :freight do