spec/unit/veritas/optimizer/algebra/rename/limit_operand/optimizable_spec.rb in veritas-optimizer-0.0.4 vs spec/unit/veritas/optimizer/algebra/rename/limit_operand/optimizable_spec.rb in veritas-optimizer-0.0.5

- old
+ new

@@ -13,10 +13,10 @@ before do object.operation.should be_kind_of(Algebra::Rename) end context 'when the operand is an limit operation' do - let(:operand) { base.order.take(1) } + let(:operand) { base.sort_by { |r| r.id }.take(1) } it { should be(true) } end context 'when the operand is not an limit operation' do