Sha256: bd6f4b36609c62d09c6f2b080dd9aa88cfb0436edd51e54daa095534351f34f9

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 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 equal(attribute) }

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

Version data entries

1 entries across 1 versions & 1 rubygems

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