Sha256: e0fae63da05ccdd40afc0463fc5fe2cf179bb178bc37e91ce843d22afe7590ef

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Predicate::Exclusion, '#inverse' do
  subject { object.inverse }

  let(:attribute)  { Attribute::Integer.new(:id)                }
  let(:enumerable) { [ 1 ].freeze                               }
  let(:object)     { described_class.new(attribute, enumerable) }

  it_should_behave_like 'an invertible method'

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

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