Sha256: e9d3e1557ed40d0d9fd6d21c688d5a2b731470e89c5bbefa7fdfcd536d0ea9ea
Contents?: true
Size: 579 Bytes
Versions: 4
Compression:
Stored size: 579 Bytes
Contents
# frozen_string_literal: true require 'dry/logic/predicates' RSpec.describe Dry::Logic::Predicates do describe '#odd?' do let(:predicate_name) { :odd? } context 'when value is an odd int' do let(:arguments_list) do [ [13], [1], [1111] ] end it_behaves_like 'a passing predicate' end context 'with value is an even int' do let(:arguments_list) do [ [0], [2], [2222] ] end it_behaves_like 'a failing predicate' end end end
Version data entries
4 entries across 4 versions & 1 rubygems