Sha256: 6d90ceb0d6700c7aacb0b52c4fa85af3f17eb46588a1b028993bfa4019f601bd
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Predicate::Match, '#inverse' do subject { object.inverse } let(:attribute) { Attribute::String.new(:name) } let(:regexp) { /Dan Kubb/.freeze } let(:object) { described_class.new(attribute, regexp) } it_should_behave_like 'an idempotent method' it { should be_kind_of(Function::Predicate::NoMatch) } its(:left) { should equal(attribute) } its(:right) { should equal(regexp) } it 'is invertible' do subject.inverse.should equal(object) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.4 | spec/unit/veritas/function/predicate/match/inverse_spec.rb |