Sha256: 2076dac0a1b482e901eb5ae4dbf5b9eb4c0de46ef6c6d2b1e1dcfb51a2d510ab
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Function::Predicate::Inequality, '#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::Equality) } 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/inequality/inverse_spec.rb |