Sha256: 4710bc66a77dea831c367098b24e76629b027c1467ca8bb9522b8ead85098836
Contents?: true
Size: 505 Bytes
Versions: 1
Compression:
Stored size: 505 Bytes
Contents
require 'spec_helper' describe 'Veritas::Logic::Connective::Negation#inverse' do subject { object.inverse } let(:klass) { Logic::Connective::Negation } let(:attribute) { Attribute::Integer.new(:id) } let(:operand) { attribute.eq(1) } let(:object) { klass.new(operand) } it_should_behave_like 'an idempotent method' it 'returns the operand' do should equal(operand) end it 'is not invertible' do subject.inverse.should_not eql(object) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/logic/connective/negation/inverse_spec.rb |