Sha256: 1e3d099fc098cb9f9c29969c5909d6d751da39b54867d6de540825fbb06ca163
Contents?: true
Size: 817 Bytes
Versions: 1
Compression:
Stored size: 817 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Logic::Predicate::Inequality::AlwaysFalse#optimizable?' do subject { object.optimizable? } let(:klass) { Optimizer::Logic::Predicate::Inequality::AlwaysFalse } let(:attribute) { Attribute::Integer.new(:id) } let(:predicate) { left.ne(right) } let(:object) { klass.new(predicate) } before do predicate.should be_kind_of(Logic::Predicate::Inequality) 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/inequality/always_false/optimizable_spec.rb |