Sha256: 7b2b9e50ca0d63314a7d1efe150b82e10911c4dbf00f3a8eee1046989f4c2624

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

require 'spec_helper'
require 'fortnox/api/models/order'
require 'fortnox/api/models/examples/document_base'

describe Fortnox::API::Model::Order, type: :model do
  valid_hash = { customer_number: '12345' }

  it_behaves_like 'DocumentBase Model',
                  Fortnox::API::Types::OrderRow,
                  :order_rows,
                  valid_hash,
                  valid_row_hash: { ordered_quantity: 1.1 }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fortnox-api-0.2.0 spec/fortnox/api/models/order_spec.rb