Sha256: 184a29a3aef6f306600f21a85f900592aa28ccc4a22ba6c55cdd2fe8ab54b011
Contents?: true
Size: 452 Bytes
Versions: 1
Compression:
Stored size: 452 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Limit, '#directions' do subject { object.directions } let(:relation) { Relation.new([ [ :id, Integer ] ], LazyEnumerable.new) } let(:object) { described_class.new(ordered, 1) } let(:ordered) { relation.sort_by { |r| r.id } } 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 |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/operation/limit/directions_spec.rb |