Sha256: 694dcd634979604e3de7af5e846f5c35b682be6033851978fb190b478cb161ab
Contents?: true
Size: 748 Bytes
Versions: 2
Compression:
Stored size: 748 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Algebra::Product::TableDeeRight#optimizable?' do subject { object.optimizable? } let(:klass) { Optimizer::Algebra::Product::TableDeeRight } let(:left) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } let(:relation) { left.product(right) } let(:object) { klass.new(relation) } before do object.operation.should be_kind_of(Algebra::Product) end context 'when the right operand is a table dee' do let(:right) { TABLE_DEE } it { should be(true) } end context 'when the right operand is not table dee' do let(:right) { TABLE_DUM } it { should be(false) } end end
Version data entries
2 entries across 2 versions & 1 rubygems