Sha256: b2c4257f0519a4a4cf3fa439c6bb2b3cddc3c36025586b43a5e5bcd5dd054b23
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Predicate::LessThanOrEqualTo, '#inverse' do subject { object.inverse } let(:attribute) { Attribute::Integer.new(:id) } let(:object) { described_class.new(attribute, 1) } it_should_behave_like 'an idempotent method' it { should be_kind_of(Function::Predicate::GreaterThan) } 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.4 | spec/unit/veritas/function/predicate/less_than_or_equal_to/inverse_spec.rb |