Sha256: a37e328fc337962e6a8a6c547704e66face2d2f031fa7b944067ceaac885b3df

Contents?: true

Size: 630 Bytes

Versions: 3

Compression:

Stored size: 630 Bytes

Contents

require 'spec_helper'
module Exlibris
  module Aleph
    module Table
      describe Collections do
        subject(:collections) { Collections.new }
        describe '#all' do
          subject { collections.all }
          it { should be_an Hash }
          it { should_not be_empty }
        end
        describe '#each' do
          subject { collections.each }
          it { should be_an Enumerable }
        end
        describe '#[]' do
          let(:admin_library) { AdminLibrary.new('NYU50') }
          subject { collections[admin_library] }
          it { should be_an Array }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exlibris-aleph-2.0.4 spec/exlibris/aleph/table/collections_spec.rb
exlibris-aleph-2.0.3 spec/exlibris/aleph/table/collections_spec.rb
exlibris-aleph-2.0.0 spec/exlibris/aleph/table/collections_spec.rb