Sha256: 2d51ba3d2b9e5d9c0b27267b061770844c2d2b6b9f38fd3544fdb0c7c0c4f0f0

Contents?: true

Size: 273 Bytes

Versions: 6

Compression:

Stored size: 273 Bytes

Contents

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