Sha256: f293c4fa87050a3c7627d9ba17544eae157261c0d7bcac90bf7ddba564ba7a45
Contents?: true
Size: 706 Bytes
Versions: 2
Compression:
Stored size: 706 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Relation::Operation::Order::OneLimitOperand#optimize' do subject { object.optimize } let(:klass) { Optimizer::Relation::Operation::Order::OneLimitOperand } let(:base) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } let(:limit) { base.order.take(1) } let(:relation) { limit.order } let(:object) { klass.new(relation) } before do object.operation.should be_kind_of(Relation::Operation::Order) object.operand.should be_kind_of(Relation::Operation::Limit) end it { should equal(limit) } end
Version data entries
2 entries across 2 versions & 1 rubygems