Sha256: 566d0e8a6cb12cfe686263525fd60b71ec2476682463b09bb7456a02278955f0

Contents?: true

Size: 754 Bytes

Versions: 6

Compression:

Stored size: 754 Bytes

Contents

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

describe Fortnox::API::Mapper::Customer do
  key_map =
    {
      vat_type: 'VATType',
      vat_number: 'VATNumber',
      email_invoice_bcc: 'EmailInvoiceBCC',
      email_invoice_cc: 'EmailInvoiceCC',
      email_offer_bcc: 'EmailOfferBCC',
      email_offer_cc: 'EmailOfferCC',
      email_order_bcc: 'EmailOrderBCC',
      email_order_cc: 'EmailOrderCC',
      show_price_vat_included: 'ShowPriceVATIncluded'
    }
  json_entity_type = 'Customer'
  json_entity_collection = 'Customers'

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