Sha256: 547f48c7e5b5fdc00b3704eaae835c01bf94a6a5a6a4fced57763f988c09262f
Contents?: true
Size: 626 Bytes
Versions: 2
Compression:
Stored size: 626 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Projection::EmptyOperand, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ], [ :name, String ] ]) } let(:base) { Relation::Empty.new(header) } let(:relation) { base.project([ :id ]) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Empty) } its(:header) { should equal(relation.header) } end
Version data entries
2 entries across 2 versions & 1 rubygems