Sha256: 30399100f4a35ddacd736d8b27025e313ab7623c372f1b4eb17046943271ef1d

Contents?: true

Size: 399 Bytes

Versions: 10

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'fortnox/api/types/order_row'
require 'fortnox/api/types/examples/document_row'

RSpec.describe Fortnox::API::Types::OrderRow, type: :type do
  valid_hash = { ordered_quantity: 10.5 }

  subject { described_class }

  it { is_expected.to require_attribute(:ordered_quantity, valid_hash) }

  it_behaves_like 'DocumentRow', valid_hash
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fortnox-api-0.8.2 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.8.1 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.8.0 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.7.2 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.7.1 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.7.0 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.6.3 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.6.2 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.6.1 spec/fortnox/api/types/order_row_spec.rb
fortnox-api-0.6.0 spec/fortnox/api/types/order_row_spec.rb