Sha256: 5e0338f4d7d1eb1e50a85eebc4fc9b58233aa9656e0cce92ca12ed7b4c09a031

Contents?: true

Size: 525 Bytes

Versions: 35

Compression:

Stored size: 525 Bytes

Contents

FactoryBot.define do
  factory :quotation_request, class: "Comee::Core::QuotationRequest" do
    reference_no { "RFQ-#{client.code}-#{DateTime.now.to_i}" }
    order_number { Faker::Alphanumeric.alpha(number: 10) }
    order_date { Date.current }
    association :delivery_address, factory: :client_address, address_type: Comee::Core::ClientAddress::DELIVERY_ADDRESS
    association :invoice_address, factory: :client_address, address_type: Comee::Core::ClientAddress::INVOICING_ADDRESS
    client
    status { 0 }
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
comee_core-0.3.41 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.40 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.39 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.38 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.37 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.36 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.35 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.34 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.33 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.32 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.31 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.30 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.29 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.28 spec/factories/comee/core/quotation_requests.rb
comee_core-0.3.27 spec/factories/comee/core/quotation_requests.rb