Sha256: f446d5bd57edf58ff679ec009b5413663d5d5ff6f4e8a6772f1a76ec68f35c21
Contents?: true
Size: 617 Bytes
Versions: 3
Compression:
Stored size: 617 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Offset::OffsetOperand, '#optimize' do subject { object.optimize } let(:order) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each).sort_by { |r| r.id } } let(:relation) { order.drop(1).drop(2) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Operation::Offset) } its(:operand) { should equal(order) } its(:offset) { should == 3 } end
Version data entries
3 entries across 3 versions & 1 rubygems