Sha256: afdf4aef90fa85aca8ef24477d18b8164099869b22c7ea9485ba00ad9fe43206

Contents?: true

Size: 275 Bytes

Versions: 6

Compression:

Stored size: 275 Bytes

Contents

module Matchers
  module Type
    def have_sized_integer( attribute, min_value, max_value, valid_hash = {} )
      options = { min_value: min_value, max_value: max_value, step: 1 }
      NumericMatcher.new( attribute, valid_hash, 'sized integer', options )
    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_sized_integer_matcher.rb
fortnox-api-0.5.1 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.5.0 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.4.0 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.3.0 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.2.0 spec/support/matchers/type/have_sized_integer_matcher.rb