Sha256: 2be112abc17c933ff917b38f6dd3780f6b45123ff8d517fa75a94ff266448fa7
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Reverse, '#directions' do subject { object.directions } let(:relation) { Relation.new([ [ :id, Integer ] ], LazyEnumerable.new) } let(:object) { described_class.new(ordered) } let(:ordered) { relation.sort_by { |r| r.id } } it_should_behave_like 'an idempotent method' it 'reverses the directions' do should equal(ordered.directions.reverse) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/operation/reverse/directions_spec.rb |