Sha256: 52175e902e28b25ff0ee95f225ce3111fb76e8ebda7df54d7f94ea9ae14f63b3
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Algebra::Projection#header' do subject { object.header } let(:klass) { Optimizer::Algebra::Projection } let(:header) { Relation::Header.new([ [ :id, Integer ], [ :name, String ] ]) } let(:operand) { Relation.new(header, [ [ 1, 'Dan Kubb' ] ]) } let(:relation) { operand.project([ :id ]) } let(:object) { klass.new(relation) } before do object.operation.should be_kind_of(Algebra::Projection) end it { should equal(relation.header) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/algebra/projection/header_spec.rb |
veritas-0.0.1 | spec/unit/veritas/optimizer/algebra/projection/header_spec.rb |