Sha256: c01bf41090e56a839c5944ab237ebc603378ac7119da1476a0230092c0eabd33

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

FactoryBot.define do
  factory :measurement_unit, class: Ecom::Core::MeasurementUnit do
    name { 'Meter' }
    abbreviation { 'm' }
    physical_quantity { Ecom::Core::MeasurementUnit::LENGTH }
    is_si_unit { true }
    conversion_factor { 1 }
    system_of_measurement { Ecom::Core::MeasurementUnit::METRIC }

    factory :non_si_measurement_unit do
      name { 'kilometer' }
      is_si_unit { false }
      conversion_factor { 0.001 }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecom_core-1.3.14 spec/factories/ecom/core/measurement_units.rb