Sha256: fd7546910cafe991d1cab517b5edd3a8f3de12538dfb38aba63f49ec5354a1c3

Contents?: true

Size: 302 Bytes

Versions: 12

Compression:

Stored size: 302 Bytes

Contents

# frozen_string_literal: true

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

12 entries across 12 versions & 1 rubygems

Version Path
fortnox-api-0.9.1 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.8.2 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.8.1 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.9.0 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.8.0 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.7.2 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.7.1 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.7.0 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.6.3 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.6.2 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.6.1 spec/support/matchers/type/have_sized_integer_matcher.rb
fortnox-api-0.6.0 spec/support/matchers/type/have_sized_integer_matcher.rb