Sha256: 0e60c73a438222fcd0f60ed827f4434ceea5e12bd8febf4e2ba563705373394b

Contents?: true

Size: 373 Bytes

Versions: 6

Compression:

Stored size: 373 Bytes

Contents

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'.freeze )
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fortnox-api-0.5.2 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.5.1 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.5.0 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.4.0 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.3.0 spec/support/matchers/type/have_country_code_matcher.rb
fortnox-api-0.2.0 spec/support/matchers/type/have_country_code_matcher.rb