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