Sha256: 3faef8cdb1d21ddd2d9601adcf523ca81ae561c45b738c49f769e7979ed190c3
Contents?: true
Size: 526 Bytes
Versions: 1
Compression:
Stored size: 526 Bytes
Contents
require 'spec_helper' describe 'Veritas::Logic::Predicate::LessThan#inverse' do subject { object.inverse } let(:klass) { Logic::Predicate::LessThan } 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::GreaterThanOrEqualTo) } 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/less_than/inverse_spec.rb |