Sha256: 2253a909d013e3122659f947c7b97679ecb60fbca66ddeeac4207e77fbf199a3

Contents?: true

Size: 769 Bytes

Versions: 6

Compression:

Stored size: 769 Bytes

Contents

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

describe Fortnox::API::Mapper::EDIInformation do
  key_map = { 
    edi_global_location_number: 'EDIGlobalLocationNumber',
    edi_global_location_number_delivery: 'EDIGlobalLocationNumberDelivery',
    edi_invoice_extra1: 'EDIInvoiceExtra1',
    edi_invoice_extra2: 'EDIInvoiceExtra2',
    edi_our_electronic_reference: 'EDIOurElectronicReference',
    edi_your_electronic_reference: 'EDIYourElectronicReference'
  }
  json_entity_type = 'EDIInformation'
  json_entity_collection = 'EDIInformation'

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