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

Version Path
axiom-0.1.0 spec/unit/axiom/relation/operation/limit/limit_spec.rb
veritas-0.0.7 spec/unit/veritas/relation/operation/limit/limit_spec.rb
veritas-0.0.6 spec/unit/veritas/relation/operation/limit/limit_spec.rb
veritas-0.0.5 spec/unit/veritas/relation/operation/limit/limit_spec.rb