Sha256: c64dcfc2352ce633a51744758a63445535e1a09db2b216d5b3fe006168be90ce

Contents?: true

Size: 263 Bytes

Versions: 6

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :physical_item, class: "Physical::Item" do
    dimensions { [1, 2, 3].map { |d| Measured::Length(d, :cm) } }
    weight { Measured::Weight(50, :g) }
    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/item_factory.rb
physical-0.5.0 lib/physical/spec_support/factories/item_factory.rb
physical-0.4.9 lib/physical/spec_support/factories/item_factory.rb
physical-0.4.8 lib/physical/spec_support/factories/item_factory.rb
physical-0.4.7 lib/physical/spec_support/factories/item_factory.rb
physical-0.4.5 lib/physical/spec_support/factories/item_factory.rb