Sha256: 47d910e8c8aa94cf61f96ed934f99c4a6c813d806f9c923a1f50dcfae4ab9364

Contents?: true

Size: 330 Bytes

Versions: 1

Compression:

Stored size: 330 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:attribute) { Attribute::Integer.new(:id)         }
  let(:object)    { described_class.coerce([attribute]) }

  it { should be_instance_of(Array) }

  it { should == [attribute.asc] }
end

Version data entries

1 entries across 1 versions & 1 rubygems

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