Sha256: 4c83d1d00b3b87e72c4288b8f46697edd1e53e8b5cbb0d72e99089e4b6e56414
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Connective::Conjunction::TrueRightOperand#optimizable?' do subject { object.optimizable? } let(:klass) { Optimizer::Logic::Connective::Conjunction::TrueRightOperand } let(:attribute) { Attribute::Integer.new(:id) } let(:connective) { left.and(right) } let(:object) { klass.new(connective) } before do object.operation.should be_kind_of(Logic::Connective::Conjunction) end context 'when right is true' do let(:left) { attribute.eq(1) } let(:right) { Logic::Proposition::True.instance } it { should be(true) } end context 'when right is not true' 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/conjunction/true_right_operand/optimizable_spec.rb |