Sha256: edaacc1f083d3e440c682cdc86d51077a36fbaac00880e1e7e51f6414ffd6819

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:body)   { LazyEnumerable.new                              }
  let(:object) { described_class.new([ [ :id, Integer ] ], body) }

  before do
    object.should be_instance_of(described_class)
  end

  it_should_behave_like 'an idempotent method'

  it { should be_instance_of(Relation::Operation::Order::DirectionSet) }

  it { should be_empty }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/relation/directions_spec.rb