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