Sha256: c653da4ac9374fb8b3cd7e58dbe80eb75cf9953dfdc2d32419154132766cdf2e
Contents?: true
Size: 630 Bytes
Versions: 1
Compression:
Stored size: 630 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Join::DisjointHeaders, '#optimize' do subject { object.optimize } let(:left) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } let(:right) { Relation.new([ [ :other_id, Integer ] ], [ [ 2 ] ].each) } let(:relation) { left.join(right) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Algebra::Product) } its(:left) { should equal(left) } its(:right) { should equal(right) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-optimizer-0.0.7 | spec/unit/veritas/optimizer/algebra/join/disjoint_headers/optimize_spec.rb |