spec/unit/veritas/relation/operation/order/directions_spec.rb in veritas-0.0.3 vs spec/unit/veritas/relation/operation/order/directions_spec.rb in veritas-0.0.4

- old
+ new

@@ -1,12 +1,14 @@ +# encoding: utf-8 + require 'spec_helper' describe Relation::Operation::Order, '#directions' do subject { object.directions } - let(:relation) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) } - let(:directions) { described_class::DirectionSet.new(relation.header) } - let(:object) { described_class.new(relation, directions) } + let(:relation) { Relation.new([ [ :id, Integer ] ], [].each) } + let(:directions) { described_class::DirectionSet.new(relation.header) } + let(:object) { described_class.new(relation, directions) } it_should_behave_like 'an idempotent method' it { should equal(directions) } end