Sha256: 62c5cfff1d010f88da5ab21b5a2e669a69670f3e6f6a2bac16e62d0091eb981d

Contents?: true

Size: 450 Bytes

Versions: 1

Compression:

Stored size: 450 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:relation)   { Relation.new([ [ :id, Integer ] ], LazyEnumerable.new) }
  let(:directions) { described_class::DirectionSet.coerce(relation.header)  }
  let(:object)     { described_class.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
axiom-0.1.0 spec/unit/axiom/relation/operation/order/directions_spec.rb