Sha256: 9df0fc8e2386a5ad1ba9340c1642532a7ec60f0f3b83aa00f9c20ecc2c97990d
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Limit::EqualLimitOperand, '#optimize' do subject { object.optimize } let(:order) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each).sort_by { |r| r.id } } let(:limit) { order.take(1) } let(:relation) { limit.take(1) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should equal(limit) } end
Version data entries
3 entries across 3 versions & 1 rubygems