Sha256: 31f08f976c2e50b3c3bb7ec4ad3e205c30e737535adc2a8088ae7891cb299ceb
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' describe 'Veritas::Logic::Connective#inverse' do subject { object.inverse } before do klass.class_eval do def inspect 'Connective()' end end end let(:klass) { Class.new(Logic::Connective) } let(:object) { klass.new } it_should_behave_like 'an idempotent method' it { should be_kind_of(Logic::Connective::Negation) } its(:operand) { should equal(object) } 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.2 | spec/unit/veritas/logic/connective/inverse_spec.rb |