Sha256: 0d18fb8755330bd2c79c2a190f80d252ff5d449eaa5264763ff199f087c31c8c

Contents?: true

Size: 594 Bytes

Versions: 40

Compression:

Stored size: 594 Bytes

Contents

FactoryBot.define do
  factory :equipment_item, class: Ecom::Core::EquipmentItem do
    name { FFaker::Name.name }
    description { FFaker::Name.name }
    status { Ecom::Core::EquipmentItem::READY }
    duty_status { Ecom::Core::EquipmentItem::AVAILABLE }
    serial_number { FFaker::Name.name }
    brand { FFaker::Name.name }
    item_model { FFaker::Name.name }
    purchase_price { 1000 }
    purchase_date { Date.today }
    license_fee { 200 }
    tax { 500 }
    association :equipment
    association :country
    association :current_location, factory: :equipment_location
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
ecom_core-1.3.14 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.13 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.12 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.11 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.10 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.9 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.8 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.7 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.6 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.5 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.4 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.3 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.2 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.1 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.3.0 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.2.36 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.2.35 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.2.34 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.2.33 spec/factories/ecom/core/equipment_items.rb
ecom_core-1.2.32 spec/factories/ecom/core/equipment_items.rb