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

- old
+ new

@@ -5,10 +5,10 @@ describe Optimizer::Relation::Operation::Order::UnoptimizedOperand, '#optimizable?' do subject { object.optimizable? } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:base) { Relation.new(header, [ [ 1 ] ].each) } - let(:relation) { operand.order } + let(:relation) { operand.sort_by { |r| r.id } } let(:object) { described_class.new(relation) } before do object.operation.should be_kind_of(Relation::Operation::Order) end