Sha256: fae7bb798fcb3b04303bb24732d62010b19543dd1aec7b8c957de6c57fe2e1fc

Contents?: true

Size: 611 Bytes

Versions: 3

Compression:

Stored size: 611 Bytes

Contents

FactoryBot.define do
  factory :crew, class: Ecom::Core::Crew do
    name { FFaker::Name.name }
    address { 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) }
    wage_in_words { FFaker::Name.name }
    employment_date { Date.today - 1 }
    sub_contracted { false }
    photo_url { FFaker::Name.name }
    guarantor_name { FFaker::Name.name }
    guarantor_phone { FFaker::Name.name }
    active { true }

    association :crew_type
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ecom_core-1.3.14 spec/factories/ecom/core/crews.rb
ecom_core-1.3.13 spec/factories/ecom/core/crews.rb
ecom_core-1.3.12 spec/factories/ecom/core/crews.rb