Sha256: f83d822fb30b95f4f5d023acbf4610e3599634f010d6157855946f585acee7b3

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require 'spec_helper'

describe 'Veritas::Relation::Operation::Order#directions' do
  subject { object.directions }

  let(:klass)      { Relation::Operation::Order                           }
  let(:relation)   { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) }
  let(:directions) { klass::DirectionSet.new(relation.header)             }
  let(:object)     { klass.new(relation, directions)                      }

  it_should_behave_like 'an idempotent method'

  it { should equal(directions) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.2 spec/unit/veritas/relation/operation/order/directions_spec.rb