Sha256: 11c9b1c1c17ddcc60f2d9d45fffe232639d0d439affd4051b72fecc57ffa7b0c
Contents?: true
Size: 732 Bytes
Versions: 4
Compression:
Stored size: 732 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Projection::UnoptimizedOperand, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ], [ :name, String ] ]) } let(:base) { Relation.new(header, [ [ 1, 'Dan Kubb' ] ].each) } let(:relation) { base.restrict { Function::Proposition::Tautology.instance }.project([ :id ]) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Algebra::Projection) } its(:operand) { should equal(base) } its(:header) { should == [ header[:id] ] } end
Version data entries
4 entries across 4 versions & 1 rubygems