Sha256: 6fbe85d4e779279db36d2e9608b723161a71a1cab5f085a15eba5467ac01005b

Contents?: true

Size: 428 Bytes

Versions: 1

Compression:

Stored size: 428 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it_should_behave_like 'an invertible method'

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

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

  its(:right) { should == 1 }
end

Version data entries

1 entries across 1 versions & 1 rubygems

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