Sha256: 1e1f4e8117ec7ba80e006f16b156d38035e764b74cb7ac1d94fc1274bd23db4a

Contents?: true

Size: 607 Bytes

Versions: 26

Compression:

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

    association :crew_type
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
ecom_core-1.3.11 spec/factories/ecom/core/crews.rb
ecom_core-1.3.10 spec/factories/ecom/core/crews.rb
ecom_core-1.3.9 spec/factories/ecom/core/crews.rb
ecom_core-1.3.8 spec/factories/ecom/core/crews.rb
ecom_core-1.3.7 spec/factories/ecom/core/crews.rb
ecom_core-1.3.6 spec/factories/ecom/core/crews.rb
ecom_core-1.3.5 spec/factories/ecom/core/crews.rb
ecom_core-1.3.4 spec/factories/ecom/core/crews.rb
ecom_core-1.3.3 spec/factories/ecom/core/crews.rb
ecom_core-1.3.2 spec/factories/ecom/core/crews.rb
ecom_core-1.3.1 spec/factories/ecom/core/crews.rb
ecom_core-1.3.0 spec/factories/ecom/core/crews.rb
ecom_core-1.2.36 spec/factories/ecom/core/crews.rb
ecom_core-1.2.35 spec/factories/ecom/core/crews.rb
ecom_core-1.2.34 spec/factories/ecom/core/crews.rb
ecom_core-1.2.33 spec/factories/ecom/core/crews.rb
ecom_core-1.2.32 spec/factories/ecom/core/crews.rb
ecom_core-1.2.31 spec/factories/ecom/core/crews.rb
ecom_core-1.2.30 spec/factories/ecom/core/crews.rb
ecom_core-1.2.29 spec/factories/ecom/core/crews.rb