Sha256: 3e90dfd0a3643fbd7f78c7155a8d7ca191b39e39375d211686484101573fd018
Contents?: true
Size: 767 Bytes
Versions: 1
Compression:
Stored size: 767 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Connective::Conjunction::TrueRightOperand#optimize' do subject { object.optimize } let(:klass) { Optimizer::Logic::Connective::Conjunction::TrueRightOperand } let(:attribute) { Attribute::Integer.new(:id) } let(:left) { attribute.eq(1) } let(:right) { Logic::Proposition::True.instance } let(:connective) { left.and(right) } let(:object) { klass.new(connective) } before do object.operation.should be_kind_of(Logic::Connective::Conjunction) end it { should equal(left) } 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/optimize_spec.rb |