Sha256: 7d9add47e2eda5ece6203fa94ede6242acb1975cdcc2f67ce53b6611979f57eb

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

require 'spec_helper'
require 'fortnox/api'
require 'fortnox/api/mappers/order'
require 'fortnox/api/mappers/examples/mapper'

describe Fortnox::API::Mapper::Order do
  key_map =
    {
      administration_fee_vat: 'AdministrationFeeVAT',
      freight_vat: 'FreightVAT',
      total_vat: 'TotalVAT',
      vat_included: 'VATIncluded'
    }
  json_entity_type = 'Order'
  json_entity_collection = 'Orders'

  it_behaves_like 'mapper', key_map, json_entity_type, json_entity_collection do
    let(:mapper){ described_class.new }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fortnox-api-0.5.2 spec/fortnox/api/mappers/order_spec.rb
fortnox-api-0.5.1 spec/fortnox/api/mappers/order_spec.rb
fortnox-api-0.5.0 spec/fortnox/api/mappers/order_spec.rb
fortnox-api-0.4.0 spec/fortnox/api/mappers/order_spec.rb
fortnox-api-0.3.0 spec/fortnox/api/mappers/order_spec.rb
fortnox-api-0.2.0 spec/fortnox/api/mappers/order_spec.rb