Sha256: 03507a2fe41c106964d5dcc608b3ce92a5a281ba38d14ffa5751c02ffb3fac51

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Operation::Limit, '#directions' do
  subject { object.directions }

  let(:relation) { Relation.new([ [ :id, Integer ] ], [].each) }
  let(:object)   { described_class.new(ordered, 1)             }
  let(:ordered)  { relation.order                              }

  it_should_behave_like 'an idempotent method'

  it { should equal(ordered.directions) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/relation/operation/limit/directions_spec.rb