Sha256: 04201eaff2d64dd2ce4411ec140916b17121331bd98d1d69c36fc80d7c6eeb5a
Contents?: true
Size: 604 Bytes
Versions: 4
Compression:
Stored size: 604 Bytes
Contents
# frozen_string_literal: true require 'dry/logic/predicates' RSpec.describe Dry::Logic::Predicates do describe '#float?' do let(:predicate_name) { :float? } context 'when value is a float' do let(:arguments_list) do [[1.0]] end it_behaves_like 'a passing predicate' end context 'with value is not an integer' do let(:arguments_list) do [ [''], [[]], [{}], [nil], [:symbol], [String], [1] ] end it_behaves_like 'a failing predicate' end end end
Version data entries
4 entries across 4 versions & 1 rubygems