Sha256: 889a0acd10768bdc33e8dea8d421e2c0746417d9a4481225f60ba38cb527817f

Contents?: true

Size: 499 Bytes

Versions: 5

Compression:

Stored size: 499 Bytes

Contents

FactoryBot.define do
  factory :crew, class: 'Ecom::Core::Crew' do
    name { FFaker::Name.name }
    phone { FFaker::Name.name }
    email { FFaker::Name.name }
    qualification { FFaker::Name.name }
    employment { Ecom::Core::Crew::PERMANENT }
    wage { FFaker::Random.rand(1000..5000) }
    employment_date { Date.today }
    sub_contracted { false }
    guarantor_name { FFaker::Name.name }
    guarantor_phone { FFaker::Name.name }
    active { true }

    association :crew_type
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_core-1.0.16 spec/factories/ecom/core/crews.rb
ecom_core-1.0.15 spec/factories/ecom/core/crews.rb
ecom_core-1.0.14 spec/factories/ecom/core/crews.rb
ecom_core-1.0.13 spec/factories/ecom/core/crews.rb
ecom_core-1.0.12 spec/factories/ecom/core/crews.rb