Sha256: 366a2ffdc452be722aa53e57a5c7898159158a02333a5aad1f141ff6c81cd623

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 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.1 spec/unit/axiom/relation/directions_spec.rb