Sha256: 60c6c8b530cfc5b62792ec0fc7c9105d653899d95c57225a07943a50c8529bff

Contents?: true

Size: 404 Bytes

Versions: 6

Compression:

Stored size: 404 Bytes

Contents

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

describe Fortnox::API::Mapper::OrderRow do
  key_map = { vat: 'VAT' }
  json_entity_type = 'OrderRow'
  json_entity_collection = 'OrderRows'

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