spec/unit/veritas/optimizer/algebra/summarization/order_operand/optimizable_spec.rb in veritas-optimizer-0.0.4 vs spec/unit/veritas/optimizer/algebra/summarization/order_operand/optimizable_spec.rb in veritas-optimizer-0.0.5
- old
+ new
@@ -8,10 +8,10 @@
let(:base) { Relation.new([ [ :id, Integer ] ], [].each) }
let(:relation) { operand.summarize([]) {} }
let(:object) { described_class.new(relation) }
context 'when operand is an order' do
- let(:operand) { base.order }
+ let(:operand) { base.sort_by { |r| r.id } }
it { should be(true) }
end
context 'when operand is not an order' do