Sha256: 51cd8a7af2f68d9bb3ae2ed5210e0637458d0b70427a77bb74211f746306e30e

Contents?: true

Size: 496 Bytes

Versions: 2

Compression:

Stored size: 496 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 invertible method'

  it { should be_instance_of(Function::Predicate::NoMatch) }

  its(:left) { should be(attribute) }

  its(:right) { should be(regexp) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/function/predicate/match/inverse_spec.rb
axiom-0.1.1 spec/unit/axiom/function/predicate/match/inverse_spec.rb