Sha256: 4de126834e70e35ce856e7aac92f74e894fc72b4517d485e62110191c494ea9d

Contents?: true

Size: 654 Bytes

Versions: 6

Compression:

Stored size: 654 Bytes

Contents

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

describe Fortnox::API::Mapper::Invoice do
  key_map =
    {
      administration_fee_vat: 'AdministrationFeeVAT',
      edi_information: 'EDIInformation',
      eu_quarterly_report: 'EUQuarterlyReport',
      freight_vat: 'FreightVAT',
      ocr: 'OCR',
      total_vat: 'TotalVAT',
      vat_included: 'VATIncluded'
    }

  json_entity_type = 'Invoice'
  json_entity_collection = 'Invoices'

  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/invoice_spec.rb
fortnox-api-0.5.1 spec/fortnox/api/mappers/invoice_spec.rb
fortnox-api-0.5.0 spec/fortnox/api/mappers/invoice_spec.rb
fortnox-api-0.4.0 spec/fortnox/api/mappers/invoice_spec.rb
fortnox-api-0.3.0 spec/fortnox/api/mappers/invoice_spec.rb
fortnox-api-0.2.0 spec/fortnox/api/mappers/invoice_spec.rb