Sha256: c36ecf20473f8c3ca83d2c541b2f650dc0a792800c63e409b307330f9e7803fe
Contents?: true
Size: 506 Bytes
Versions: 1
Compression:
Stored size: 506 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Predicate::GreaterThan, '#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::LessThanOrEqualTo) } 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/greater_than/inverse_spec.rb |