Sha256: 2f4d9a83ee2891895a79fb42c64e7f073f19d4bd19651d8dd91d48c6bc1454fc

Contents?: true

Size: 275 Bytes

Versions: 5

Compression:

Stored size: 275 Bytes

Contents

# frozen_string_literal: true

require 'factory_bot'

FactoryBot.define do
  factory :physical_item, class: "Physical::Item" do
    dimensions { [1, 2, 3] }
    dimension_unit { :cm }
    weight { 50 }
    weight_unit { :g }
    initialize_with { new(attributes) }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
physical-0.1.4 lib/physical/spec_support/factories/item_factory.rb
physical-0.1.3 lib/physical/spec_support/factories/item_factory.rb
physical-0.1.2 lib/physical/spec_support/factories/item_factory.rb
physical-0.1.1 lib/physical/spec_support/factories/item_factory.rb
physical-0.1.0 lib/physical/spec_support/factories/item_factory.rb