Sha256: 084c576d5e4977d0efe57cca7ece1eac91ce6515d9247d37c2e153f4f4a92043

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 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', '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

3 entries across 3 versions & 1 rubygems

Version Path
fortnox-api-0.7.2 spec/fortnox/api/types/enums_spec.rb
fortnox-api-0.7.1 spec/fortnox/api/types/enums_spec.rb
fortnox-api-0.7.0 spec/fortnox/api/types/enums_spec.rb