lib/physical/spec_support/factories/item_factory.rb in physical-0.1.4 vs lib/physical/spec_support/factories/item_factory.rb in physical-0.2.0

- old
+ new

@@ -2,12 +2,10 @@ require 'factory_bot' FactoryBot.define do factory :physical_item, class: "Physical::Item" do - dimensions { [1, 2, 3] } - dimension_unit { :cm } - weight { 50 } - weight_unit { :g } + dimensions { [1, 2, 3].map { |d| Measured::Length(d, :cm)} } + weight { Measured::Weight(50, :g) } initialize_with { new(attributes) } end end