accodeing/fortnox-api

View on GitHub
spec/fortnox/api/types/enums_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# 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'
  it_behaves_like 'enum', 'TaxReductionType', 'TaxReductionTypes'
end