Sha256: 013d18ce67064f1846de23742925bb40315b46bac9e8b820f3176651963cc606
Contents?: true
Size: 473 Bytes
Versions: 4
Compression:
Stored size: 473 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Limit, '#limit' do subject { object.limit } let(:relation) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ], [ 3 ] ]) } let(:order) { relation.sort_by { |r| r.id } } let(:limit) { 1 } let(:object) { described_class.new(order, limit) } it { should == limit } end
Version data entries
4 entries across 4 versions & 2 rubygems