Sha256: 5b493eed541449aafd892067fef7980f6bf80b2e8c548b26a3b006bc8d61b6db

Contents?: true

Size: 516 Bytes

Versions: 1

Compression:

Stored size: 516 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Logic::Predicate::Equality#inverse' do
  subject { object.inverse }

  let(:klass)     { Logic::Predicate::Equality  }
  let(:attribute) { Attribute::Integer.new(:id) }
  let(:object)    { klass.new(attribute, 1)     }

  it_should_behave_like 'an idempotent method'

  it { should be_kind_of(Logic::Predicate::Inequality) }

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

  its(:right) { should == 1 }

  it 'is invertible' do
    subject.inverse.should equal(object)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/logic/predicate/equality/inverse_spec.rb