Sha256: fd704b9049ef33893d54861892d7737c8ca8765869e05d4184633d1aa28341b3
Contents?: true
Size: 642 Bytes
Versions: 2
Compression:
Stored size: 642 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Algebra::Intersection::EmptyRight#optimize' do subject { object.optimize } let(:klass) { Optimizer::Algebra::Intersection::EmptyRight } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:left) { Relation.new(header, [ [ 1 ] ].each) } let(:right) { Relation::Empty.new(header) } let(:relation) { left.intersect(right) } let(:object) { klass.new(relation) } before do object.operation.should be_kind_of(Algebra::Intersection) end it { should equal(right) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/algebra/intersection/empty_right/optimize_spec.rb |
veritas-0.0.1 | spec/unit/veritas/optimizer/algebra/intersection/empty_right/optimize_spec.rb |