Sha256: b3145945bbf669af6d3e7735cf74bdfca913a72c9f8c43bff789e0f0f792e214
Contents?: true
Size: 624 Bytes
Versions: 4
Compression:
Stored size: 624 Bytes
Contents
# frozen_string_literal: true require 'dry/logic/predicates' RSpec.describe Dry::Logic::Predicates do describe '#date_time?' do let(:predicate_name) { :date_time? } context 'when value is a datetime' do let(:arguments_list) do [[DateTime.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
4 entries across 4 versions & 1 rubygems