Sha256: ea3b2fe0baefdf40ac5ad587328c3e7892edacb001938ba6b01a1b91ef1b0081

Contents?: true

Size: 457 Bytes

Versions: 11

Compression:

Stored size: 457 Bytes

Contents

# frozen_string_literal: true

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

describe Fortnox::API::Mapper::Article do
  key_map = Fortnox::API::Mapper::Article::KEY_MAP

  json_entity_type = 'Article'
  json_entity_collection = 'Articles'

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fortnox-api-0.8.2 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.8.1 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.9.0 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.8.0 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.7.2 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.7.1 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.7.0 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.6.3 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.6.2 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.6.1 spec/fortnox/api/mappers/article_spec.rb
fortnox-api-0.6.0 spec/fortnox/api/mappers/article_spec.rb