Sha256: a9fe707b443f6fedc5a9716b7481aeded3e6c80c2e9b6ea248d00ed72e93544b

Contents?: true

Size: 273 Bytes

Versions: 6

Compression:

Stored size: 273 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :physical_pallet, class: "Physical::Pallet" do
    dimensions { [80, 120, 165].map { |d| Measured::Length(d, :cm) } }
    weight { Measured::Weight(22, :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/pallet_factory.rb
physical-0.5.0 lib/physical/spec_support/factories/pallet_factory.rb
physical-0.4.9 lib/physical/spec_support/factories/pallet_factory.rb
physical-0.4.8 lib/physical/spec_support/factories/pallet_factory.rb
physical-0.4.7 lib/physical/spec_support/factories/pallet_factory.rb
physical-0.4.5 lib/physical/spec_support/factories/pallet_factory.rb