Sha256: 50b9f2ebfab977f4547335c5f6887be33205edd742b370975b17eaa8f2d8543d

Contents?: true

Size: 329 Bytes

Versions: 2

Compression:

Stored size: 329 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation::Header, '#to_ary' do
  subject { object.to_ary }

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

  it { should be_instance_of(Array) }

  it { should == [attribute] }

  it { should be_frozen }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.2.0 spec/unit/axiom/relation/header/to_ary_spec.rb
axiom-0.1.1 spec/unit/axiom/relation/header/to_ary_spec.rb