Sha256: 4b85d028ea43e36a968a99ed2f4b7611a27ae31dbce65779dec1d0d05ccdf590
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 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 invertible method' it { should be_instance_of(Function::Predicate::LessThanOrEqualTo) } 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/greater_than/inverse_spec.rb |