Sha256: 21580dd3384b4cfcf18429d07cfcb370eb0968629e4bf430b3461b673222b3b4

Contents?: true

Size: 640 Bytes

Versions: 17

Compression:

Stored size: 640 Bytes

Contents

FactoryBot.define do
  factory :crew_contract, class: 'Ecom::Core::CrewContract' do
    from { Date.yesterday }
    to { Date.tomorrow }
    place_of_work { FFaker::Name.name }
    probation_period { 45 }
    contract_no { FFaker::Name.name }
    contract_type { FFaker::Name.name }
    contract_signed { false }
    date_contract_signed { Date.today }
    association :crew
    association :crew_type
    wage { 75.0 }
    wage_in_words { 'Seventy five birr only' }
    status { :draft }

    factory :active_crew_contract do
      status { :in_effect }
    end

    factory :void_crew_contract do
      status { :void }
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ecom_core-1.3.14 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.13 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.12 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.11 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.10 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.9 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.8 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.7 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.6 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.5 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.4 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.3 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.2 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.1 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.3.0 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.2.36 spec/factories/ecom/core/crew_contracts.rb
ecom_core-1.2.35 spec/factories/ecom/core/crew_contracts.rb