Sha256: 317f75fa07e49c4f5d4453a7b35f654997bce058c1aa4d6781f232e6252cfbe4

Contents?: true

Size: 503 Bytes

Versions: 44

Compression:

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

    association :crew_type
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
ecom_core-1.1.14 spec/factories/ecom/core/crews.rb
ecom_core-1.1.13 spec/factories/ecom/core/crews.rb
ecom_core-1.1.12 spec/factories/ecom/core/crews.rb
ecom_core-1.1.11 spec/factories/ecom/core/crews.rb
ecom_core-1.1.10 spec/factories/ecom/core/crews.rb
ecom_core-1.1.9 spec/factories/ecom/core/crews.rb
ecom_core-1.1.8 spec/factories/ecom/core/crews.rb
ecom_core-1.1.7 spec/factories/ecom/core/crews.rb
ecom_core-1.1.6 spec/factories/ecom/core/crews.rb
ecom_core-1.1.5 spec/factories/ecom/core/crews.rb
ecom_core-1.1.4 spec/factories/ecom/core/crews.rb
ecom_core-1.1.3 spec/factories/ecom/core/crews.rb
ecom_core-1.1.2 spec/factories/ecom/core/crews.rb
ecom_core-1.1.1 spec/factories/ecom/core/crews.rb
ecom_core-1.1.0 spec/factories/ecom/core/crews.rb
ecom_core-1.0.25 spec/factories/ecom/core/crews.rb
ecom_core-1.0.24 spec/factories/ecom/core/crews.rb
ecom_core-1.0.23 spec/factories/ecom/core/crews.rb
ecom_core-1.0.22 spec/factories/ecom/core/crews.rb
ecom_core-1.0.21 spec/factories/ecom/core/crews.rb