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