Sha256: 6f26e4370965c9d212e25cae6135d99ce1f3b2c9fdb4878a388ff42aea578eff

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Optimizer::Algebra::Product::TableDeeLeft#optimize' do
  subject { object.optimize }

  let(:klass)    { Optimizer::Algebra::Product::TableDeeLeft           }
  let(:left)     { TABLE_DEE                                           }
  let(:right)    { Relation.new([ [ :id, Integer  ] ], [ [ 1 ] ].each) }
  let(:relation) { left.product(right)                                 }
  let(:object)   { klass.new(relation)                                 }

  before do
    object.operation.should be_kind_of(Algebra::Product)
  end

  it { should equal(right) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/optimizer/algebra/product/table_dee_left/optimize_spec.rb
veritas-0.0.1 spec/unit/veritas/optimizer/algebra/product/table_dee_left/optimize_spec.rb