Sha256: 2ead17547ad880ad7f4e6838ec1222f80301121c942734e2deafededbd7f49e8

Contents?: true

Size: 483 Bytes

Versions: 1

Compression:

Stored size: 483 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:body)   { [].each                                         }  # use an Enumerator
  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_kind_of(Relation::Operation::Order::DirectionSet) }

  it { should be_empty }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/relation/directions_spec.rb