lib/physical/spec_support/factories/box_factory.rb in physical-0.3.3 vs lib/physical/spec_support/factories/box_factory.rb in physical-0.4.0
- old
+ new
@@ -2,10 +2,10 @@
require 'factory_bot'
FactoryBot.define do
factory :physical_box, class: "Physical::Box" do
- dimensions { [4, 5, 6].map { |d| Measured::Length(d, :dm) } }
+ dimensions { [20, 15, 30].map { |d| Measured::Length(d, :cm) } }
inner_dimensions { dimensions.map { |d| d - Measured::Length(1, :cm) } }
weight { Measured::Weight(0.1, :kg) }
initialize_with { new(attributes) }
end
end