Sha256: d28cefef777cbaf70589e285e474af63cd1298f3577a2a8aeff8c2efae0ab21c

Contents?: true

Size: 343 Bytes

Versions: 6

Compression:

Stored size: 343 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :physical_box, class: "Physical::Box" do
    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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
physical-0.5.1 lib/physical/spec_support/factories/box_factory.rb
physical-0.5.0 lib/physical/spec_support/factories/box_factory.rb
physical-0.4.9 lib/physical/spec_support/factories/box_factory.rb
physical-0.4.8 lib/physical/spec_support/factories/box_factory.rb
physical-0.4.7 lib/physical/spec_support/factories/box_factory.rb
physical-0.4.5 lib/physical/spec_support/factories/box_factory.rb