Sha256: bd86af1e1f9dde92a0f4c7b999ec9026ba7aec00ed2c1e815b2ed4e0051a807f
Contents?: true
Size: 912 Bytes
Versions: 1
Compression:
Stored size: 912 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Connective::Disjunction::FalseRightOperand#optimizable?' do subject { object.optimizable? } let(:klass) { Optimizer::Logic::Connective::Disjunction::FalseRightOperand } let(:attribute) { Attribute::Integer.new(:id) } let(:connective) { left.or(right) } let(:object) { klass.new(connective) } before do object.operation.should be_kind_of(Logic::Connective::Disjunction) end context 'when right is false' do let(:left) { attribute.eq(1) } let(:right) { Logic::Proposition::False.instance } it { should be(true) } end context 'when right is not false' do let(:left) { attribute.eq(1) } let(:right) { attribute.eq(1) } it { should be(false) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/logic/connective/disjunction/false_right_operand/optimizable_spec.rb |