Sha256: 846183f81780caa9082eb7a232364e55d43a13c58ca9b8fc549820986274f5b2

Contents?: true

Size: 527 Bytes

Versions: 1

Compression:

Stored size: 527 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Function::Predicate::Inclusion, '#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::Exclusion) }

  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/inclusion/inverse_spec.rb