spec/unit/axiom/relation/operation/reverse/directions_spec.rb in axiom-0.1.0 vs spec/unit/axiom/relation/operation/reverse/directions_spec.rb in axiom-0.1.1

- old
+ new

@@ -3,15 +3,15 @@ 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 } } + 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) + should eql(ordered.directions.reverse) end end