Sha256: 36e93acacc79cd259fda26d1fac0b711e77ced20715568eb97e70533f2cb4c5d

Contents?: true

Size: 477 Bytes

Versions: 4

Compression:

Stored size: 477 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Operation::Offset, '#offset' do
  subject { object.offset }

  let(:relation) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ], [ 3 ] ]) }
  let(:order)    { relation.sort_by { |r| r.id }                               }
  let(:offset)   { 1                                                           }
  let(:object)   { described_class.new(order, offset)                          }

  it { should == offset }
end

Version data entries

4 entries across 4 versions & 2 rubygems

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