Sha256: ff1778bcc9e906d08f89ce4a5cd1be508905ca5e014823e726841356378677a2

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 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 eql(directions) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.1 spec/unit/axiom/relation/operation/order/directions_spec.rb