Sha256: bd9674d5405a51b89524986547161c41552ab231daa8602977e93503d802aed2

Contents?: true

Size: 480 Bytes

Versions: 2

Compression:

Stored size: 480 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer::Relation::Materialized::EmptyOperand, '#optimize' do
  subject { object.optimize }

  let(:header)   { Relation::Header.new([ [ :id, Integer ] ]) }
  let(:relation) { Relation.new(header, [].each)              }
  let(:object)   { described_class.new(relation)              }

  before do
    object.should be_optimizable
  end

  it { should be_kind_of(Relation::Empty) }

  its(:header) { should equal(header) }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/relation/materialized/empty_operand/optimize_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/relation/materialized/empty_operand/optimize_spec.rb