spec/unit/veritas/optimizer/algebra/summarization/order_operand/optimize_spec.rb in veritas-optimizer-0.0.4 vs spec/unit/veritas/optimizer/algebra/summarization/order_operand/optimize_spec.rb in veritas-optimizer-0.0.5
- old
+ new
@@ -4,10 +4,10 @@
describe Optimizer::Algebra::Summarization::OrderOperand, '#optimize' do
subject { object.optimize }
let(:base) { Relation.new([ [ :id, Integer ] ], [].each) }
- let(:operand) { base.order }
+ let(:operand) { base.sort_by { |r| r.id } }
let(:relation) { operand.summarize([]) {} }
let(:object) { described_class.new(relation) }
before do
object.should be_optimizable