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.2.5 spec/factories/ecom/core/crews.rb
ecom_core-1.2.4 spec/factories/ecom/core/crews.rb
ecom_core-1.2.3 spec/factories/ecom/core/crews.rb
ecom_core-1.2.2 spec/factories/ecom/core/crews.rb
ecom_core-1.2.1 spec/factories/ecom/core/crews.rb
ecom_core-1.2.0 spec/factories/ecom/core/crews.rb
ecom_core-1.1.28 spec/factories/ecom/core/crews.rb
ecom_core-1.1.27 spec/factories/ecom/core/crews.rb
ecom_core-1.1.26 spec/factories/ecom/core/crews.rb
ecom_core-1.1.25 spec/factories/ecom/core/crews.rb
ecom_core-1.1.24 spec/factories/ecom/core/crews.rb
ecom_core-1.1.23 spec/factories/ecom/core/crews.rb
ecom_core-1.1.22 spec/factories/ecom/core/crews.rb
ecom_core-1.1.21 spec/factories/ecom/core/crews.rb
ecom_core-1.1.20 spec/factories/ecom/core/crews.rb
ecom_core-1.1.19 spec/factories/ecom/core/crews.rb
ecom_core-1.1.18 spec/factories/ecom/core/crews.rb
ecom_core-1.1.17 spec/factories/ecom/core/crews.rb
ecom_core-1.1.16 spec/factories/ecom/core/crews.rb
ecom_core-1.1.15 spec/factories/ecom/core/crews.rb