Sha256: f434ac87fa6858376ffaa8973406120bdbc282cd98e61da6db3599b2f240507f

Contents?: true

Size: 521 Bytes

Versions: 2

Compression:

Stored size: 521 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 be(attribute) }

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

Version data entries

2 entries across 2 versions & 1 rubygems

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