Sha256: 50d397029d397643da497ba2a0108f5fd064d6dfae9ed6dec631659b7d9b8a04

Contents?: true

Size: 300 Bytes

Versions: 12

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

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

12 entries across 12 versions & 1 rubygems

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