Sha256: e84e581cac686ff093be8e70b374f9934cf0a4d9a14b21356fb28cf281ad2d71
Contents?: true
Size: 458 Bytes
Versions: 1
Compression:
Stored size: 458 Bytes
Contents
require 'spec_helper' describe 'Veritas::Logic::Predicate::Match.call' do subject { object.call(left, right) } let(:object) { Logic::Predicate::Match } context 'when right regexp matches left' do let(:left) { 'Dan Kubb' } let(:right) { /Dan Kubb/ } it { should be(true) } end context 'when right regexp does not match left' do let(:left) { 'Alex Kubb' } let(:right) { /Dan Kubb/ } it { should be(false) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/logic/predicate/match/class_methods/call_spec.rb |