Sha256: e06badcd898d4fd0e13d707a536ea6a332dc675c0def2711b8d4dd8ed428253b

Contents?: true

Size: 389 Bytes

Versions: 5

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

module Matchers
  module Type
    def have_country_code(attribute, valid_hash = {})
      HaveCountryCodeMatcher.new(attribute, valid_hash)
    end

    class HaveCountryCodeMatcher < EnumMatcher
      def initialize(attribute, valid_hash)
        super(attribute, valid_hash, 'CountryCode', 'CountryCodes', nonsense_value: 'XX')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fortnox-api-0.7.0 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.6.3 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.6.2 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.6.1 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.6.0 spec/support/matchers/type/have_country_code_matcher.rb