lib/physical/spec_support/factories/package_factory.rb in physical-0.4.4 vs lib/physical/spec_support/factories/package_factory.rb in physical-0.4.5
- old
+ new
@@ -1,14 +1,10 @@
# 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) }
void_fill_density { Measured::Density(0.01, :g_ml) }
- initialize_with { new(attributes) }
+ initialize_with { new(**attributes) }
end
end