spec/unit/veritas/optimizer/relation/operation/order/unoptimized_operand/optimize_spec.rb in veritas-optimizer-0.0.4 vs spec/unit/veritas/optimizer/relation/operation/order/unoptimized_operand/optimize_spec.rb in veritas-optimizer-0.0.5

- old
+ new

@@ -4,10 +4,10 @@ describe Optimizer::Relation::Operation::Order::UnoptimizedOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } - let(:relation) { base.rename({}).order } + let(:relation) { base.rename({}).sort_by { |r| r.id } } let(:object) { described_class.new(relation) } before do object.should be_optimizable end