Sha256: 1d5776d995e48b08e84a190d0b89410ea5111184b70be7d827c67f1a97b7547e

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'
module Exlibris
  module Aleph
    module Table
      module Reader
        module Row
          describe Collections do
            let(:data) { ['MAIN', 'BOBST', 'L', 'Main Collection'] }
            subject(:collections) { Collections.new(data) }
            it { should be_a Base }
            it { should be_a Collections }
            describe '#data' do
              subject { collections.data }
              it { should eq data }
            end
            describe '#code' do
              subject { collections.code }
              it { should eq 'MAIN' }
            end
            describe '#sub_library_code' do
              subject { collections.sub_library_code }
              it { should eq 'BOBST' }
            end
            describe '#alpha' do
              subject { collections.alpha }
              it { should eq 'L' }
            end
            describe '#display' do
              subject { collections.display }
              it { should eq 'Main Collection' }
            end
          end
        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/reader/row/collections_spec.rb
exlibris-aleph-2.0.3 spec/exlibris/aleph/table/reader/row/collections_spec.rb
exlibris-aleph-2.0.0 spec/exlibris/aleph/table/reader/row/collections_spec.rb