Sha256: 25a6c2bd7aafd8acadceb0c2e72018b9ae27c4a394fc98e1652923e74fdd6f74
Contents?: true
Size: 585 Bytes
Versions: 5
Compression:
Stored size: 585 Bytes
Contents
require 'dry/validation/predicates' RSpec.describe Dry::Validation::Predicates do describe '#time?' do let(:predicate_name) { :time? } context 'when value is a date' do let(:arguments_list) do [[Time.now]] 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
5 entries across 5 versions & 1 rubygems