Sha256: fd62fccdf364eabc5944b80b04b47f3803b85631f6245842b20522548ba3452f
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Algebra::Projection::UnchangedHeader#optimize' do subject { object.optimize } let(:klass) { Optimizer::Algebra::Projection::UnchangedHeader } let(:header) { Relation::Header.new([ [ :id, Integer ], [ :name, String ] ]) } let(:base) { Relation.new(header, [ [ 1, 'Dan Kubb' ] ].each) } let(:relation) { base.project(header) } let(:object) { klass.new(relation) } before do object.operation.should be_kind_of(Algebra::Projection) end it { should equal(base) } end
Version data entries
2 entries across 2 versions & 1 rubygems