Sha256: c89ca3314197e203ca602d0ae515191e1efd0c29ee3c97b5c35f620ce3110765

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

require 'spec_helper'
module Exlibris
  module Aleph
    module Table
      module Reader
        module Row
          describe SubLibraries do
            let(:data) { ['BOBST', '1', 'NYU50', 'L', 'NYU Bobst                     '] }
            subject(:sub_libraries) { SubLibraries.new(data) }
            it { should be_a Base }
            it { should be_a SubLibraries }
            describe '#data' do
              subject { sub_libraries.data }
              it { should eq data }
            end
            describe '#code' do
              subject { sub_libraries.code }
              it { should eq 'BOBST' }
            end
            describe '#type' do
              subject { sub_libraries.type }
              it { should eq '1' }
            end
            describe '#admin_library_code' do
              subject { sub_libraries.admin_library_code }
              it { should eq 'NYU50' }
            end
            describe '#alpha' do
              subject { sub_libraries.alpha }
              it { should eq 'L' }
            end
            describe '#display' do
              subject { sub_libraries.display }
              it { should eq 'NYU Bobst' }
            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/sub_libraries_spec.rb
exlibris-aleph-2.0.3 spec/exlibris/aleph/table/reader/row/sub_libraries_spec.rb
exlibris-aleph-2.0.0 spec/exlibris/aleph/table/reader/row/sub_libraries_spec.rb