Sha256: 783aec277c08ed2e2414f17769fbbbf5c787c98a83fb9caf07c3c1ed9b613b43

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

FactoryGirl.define do
  factory :operation, class: 'Logistics::Core::Operation' do
    operation_number { FFaker::Name.name }
    contract_number { FFaker::Name.name }
    tasks_generated false
    is_new_customer false
    status { FFaker::Name.name }
    association :offer_request
    association :declarant
    association :declaration_type
    association :transport_mode
    association :customs_office
    association :customs_office_unit
    association :country_of_origin, factory: :country
    association :acquisition_mode
    association :payment_term
    association :delivery_term
    association :container_arrangement
    association :customs_transport_tariff
    association :esl_transport_tariff
    association :warehouse
    association :owner, factory: :user
    trade_license_number { FFaker::Name.name }
    tin_number { FFaker::Name.name }
    t_number { FFaker::Name.name }
    investment_license_number { FFaker::Name.name }
    load_level { FFaker::Name.name }
    is_transfer false
    transfer_name nil
    transfer_tin_no nil
    transport_modality nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 spec/factories/operations.rb
logistics_core-21.11.1 spec/factories/operations.rb
logistics_core-21.08.1 spec/factories/operations.rb
logistics_core-21.03.1 spec/factories/operations.rb
logistics_core-20.10.3 spec/factories/operations.rb
logistics_core-20.10.2 spec/factories/operations.rb
logistics_core-20.10.1 spec/factories/operations.rb
logistics_core-20.9.1 spec/factories/operations.rb
logistics_core-20.8.1 spec/factories/operations.rb