Sha256: 5029bf740d8d74cc07274a72629bab570ec2bfbb6170b22241c83ac9f6ee5d6d
Contents?: true
Size: 640 Bytes
Versions: 4
Compression:
Stored size: 640 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Join::EqualHeaders, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:left) { Relation.new(header, [ [ 1 ] ].each) } let(:right) { Relation.new(header, [ [ 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::Intersection) } its(:left) { should equal(left) } its(:right) { should equal(right) } end
Version data entries
4 entries across 4 versions & 1 rubygems