Sha256: 00239193afba04835d44ef3995e8f43c3ea5a75e1a87bb7d55af90e0e57559d7

Contents?: true

Size: 361 Bytes

Versions: 5

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'

FactoryBot.define do
  factory :physical_box, class: "Physical::Box" do
    dimensions { [4, 5, 6].map { |d| Measured::Length(d, :dm) } }
    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

5 entries across 5 versions & 1 rubygems

Version Path
physical-0.3.3 lib/physical/spec_support/factories/box_factory.rb
physical-0.3.2 lib/physical/spec_support/factories/box_factory.rb
physical-0.3.1 lib/physical/spec_support/factories/box_factory.rb
physical-0.3.0 lib/physical/spec_support/factories/box_factory.rb
physical-0.2.0 lib/physical/spec_support/factories/box_factory.rb