Sha256: bbb31174280f9e029a3f648c760a88ba34548a5df98f6dd5e4c70745d804a041

Contents?: true

Size: 726 Bytes

Versions: 4

Compression:

Stored size: 726 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'
require 'fortnox/api/types'
require 'fortnox/api/types/examples/enum'

describe Fortnox::API::Types do
  it_behaves_like 'enum', 'ArticleType', 'ArticleTypes'
  it_behaves_like 'enum', 'CountryCode', 'CountryCodes', auto_crop: true
  it_behaves_like 'enum', 'Currency', 'Currencies', auto_crop: true
  it_behaves_like 'enum', 'CustomerType', 'CustomerTypes'
  it_behaves_like 'enum', 'DiscountType', 'DiscountTypes'
  it_behaves_like 'enum', 'HouseworkType', 'HouseworkTypes'
  it_behaves_like 'enum', 'VATType', 'VATTypes'
  it_behaves_like 'enum', 'DefaultDeliveryType', 'DefaultDeliveryTypeValues'
  it_behaves_like 'enum', 'ProjectStatusType', 'ProjectStatusTypes'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fortnox-api-0.6.3 spec/fortnox/api/types/enums_spec.rb
fortnox-api-0.6.2 spec/fortnox/api/types/enums_spec.rb
fortnox-api-0.6.1 spec/fortnox/api/types/enums_spec.rb
fortnox-api-0.6.0 spec/fortnox/api/types/enums_spec.rb