Sha256: c3b0c8144aaa1a03d172724cf987678560655417f2781febb37395b4070c59f8

Contents?: true

Size: 524 Bytes

Versions: 3

Compression:

Stored size: 524 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Relation::Operation::Combination, '#optimize' do
  subject { object.optimize }

  let(:left)     { Relation.new([ [ :id, Integer ] ], []) }
  let(:right)    { Relation.new([ [ :id, Integer ] ], []) }
  let(:relation) { left.join(right)                       }
  let(:object)   { described_class.new(relation)          }

  it { should be_kind_of(Relation::Empty) }

  its(:header) { should equal(relation.header) }

  its(:tuples) { should equal(relation) }
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
axiom-optimizer-0.1.0 spec/unit/axiom/optimizer/relation/operation/combination/optimize_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/relation/operation/combination/optimize_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/relation/operation/combination/optimize_spec.rb