Sha256: 276fe40356d10593a4b07000747d2b3623e3bfb260530d345f6722f2fb98f359
Contents?: true
Size: 458 Bytes
Versions: 6
Compression:
Stored size: 458 Bytes
Contents
require 'dry/validation/predicates' RSpec.describe Dry::Validation::Predicates, '#format?' do let(:predicate_name) { :format? } context 'when value matches provided regexp' do let(:arguments_list) do [['Foo', /^F/]] end it_behaves_like 'a passing predicate' end context 'when value does not match provided regexp' do let(:arguments_list) do [['Bar', /^F/]] end it_behaves_like 'a failing predicate' end end
Version data entries
6 entries across 6 versions & 1 rubygems