Sha256: ccbf70865fdc77c824e12b4030ab657063935277cdae65af53b1dd8646bc97c7

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 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 be(relation.header) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-optimizer-0.2.0 spec/unit/axiom/optimizer/relation/operation/combination/optimize_spec.rb
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/relation/operation/combination/optimize_spec.rb