Sha256: 6ba577a62722a2a93108c08e232e9b222b956706b8945d4ef4027d95907781bf
Contents?: true
Size: 869 Bytes
Versions: 2
Compression:
Stored size: 869 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Algebra::Rename::SetOperand#optimize' do subject { object.optimize } let(:klass) { Optimizer::Algebra::Rename::SetOperand } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:left) { Relation.new(header, [ [ 1 ] ].each) } let(:right) { Relation.new(header, [ [ 2 ] ].each) } let(:relation) { left.union(right).rename(:id => :other_id) } let(:object) { klass.new(relation) } before do object.operation.should be_kind_of(Algebra::Rename) object.operand.should be_kind_of(Relation::Operation::Set) end it { should be_kind_of(Relation::Operation::Set) } its(:left) { should eql(left.rename(:id => :other_id)) } its(:right) { should eql(right.rename(:id => :other_id)) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/optimizer/algebra/rename/set_operand/optimize_spec.rb |
veritas-0.0.1 | spec/unit/veritas/optimizer/algebra/rename/set_operand/optimize_spec.rb |