Sha256: fc41e6870562ff27e4fd66031317a0c7cf7fe218e20e3368d3b95fe3f8059400

Contents?: true

Size: 575 Bytes

Versions: 15

Compression:

Stored size: 575 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 }
    guarantor_name { FFaker::Name.name }
    guarantor_phone { FFaker::Name.name }
    active { true }

    association :crew_type
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ecom_core-1.2.22 spec/factories/ecom/core/crews.rb
ecom_core-1.2.21 spec/factories/ecom/core/crews.rb
ecom_core-1.2.20 spec/factories/ecom/core/crews.rb
ecom_core-1.2.19 spec/factories/ecom/core/crews.rb
ecom_core-1.2.18 spec/factories/ecom/core/crews.rb
ecom_core-1.2.17 spec/factories/ecom/core/crews.rb
ecom_core-1.2.16 spec/factories/ecom/core/crews.rb
ecom_core-1.2.15 spec/factories/ecom/core/crews.rb
ecom_core-1.2.14 spec/factories/ecom/core/crews.rb
ecom_core-1.2.13 spec/factories/ecom/core/crews.rb
ecom_core-1.2.12 spec/factories/ecom/core/crews.rb
ecom_core-1.2.11 spec/factories/ecom/core/crews.rb
ecom_core-1.2.10 spec/factories/ecom/core/crews.rb
ecom_core-1.2.9 spec/factories/ecom/core/crews.rb
ecom_core-1.2.7 spec/factories/ecom/core/crews.rb