Sha256: 917897a1e8da88cd087eb6459a6e8b95599cbfd139395630ea6412b81543ea13
Contents?: true
Size: 614 Bytes
Versions: 1
Compression:
Stored size: 614 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Binary::MaterializedOperand, '#optimize' do subject { object.optimize } let(:left) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]) } let(:right) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]) } let(:relation) { left.union(right) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Materialized) } its(:header) { should equal(relation.header) } it { should == [ [ 1 ] ] } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.4 | spec/unit/veritas/optimizer/relation/operation/binary/materialized_operand/optimize_spec.rb |