Sha256: d3be0bf2773d58c8ec8a5b92110b65cc11264f1b30f86c8df77e8cf1139446bf
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Join::EqualHeaders, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.coerce([[:id, Integer]]) } let(:left) { Relation.new(header, LazyEnumerable.new([[1]])) } let(:right) { Relation.new(header, LazyEnumerable.new([[2]])) } let(:relation) { left.join(right) } let(:object) { described_class.new(relation) } before do expect(object).to be_optimizable end it { should be_kind_of(Algebra::Intersection) } its(:left) { should be(left) } its(:right) { should be(right) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.2.0 | spec/unit/axiom/optimizer/algebra/join/equal_headers/optimize_spec.rb |
axiom-optimizer-0.1.1 | spec/unit/axiom/optimizer/algebra/join/equal_headers/optimize_spec.rb |