Sha256: cacb695ea830c633801d4bd5cc2f30245eb937f6b0de396c7ae360798058e295
Contents?: true
Size: 800 Bytes
Versions: 1
Compression:
Stored size: 800 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Predicate::Equality::AlwaysTrue#optimizable?' do subject { object.optimizable? } let(:klass) { Optimizer::Logic::Predicate::Equality::AlwaysTrue } let(:attribute) { Attribute::Integer.new(:id) } let(:predicate) { left.eq(right) } let(:object) { klass.new(predicate) } before do predicate.should be_kind_of(Logic::Predicate::Equality) end context 'when left and right are equal' do let(:left) { attribute } let(:right) { attribute } it { should be(true) } end context 'when left and right are not equal' do let(:left) { attribute } let(:right) { 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/predicate/equality/always_true/optimizable_spec.rb |