Sha256: 23aec95528036ca6d554b089923c571bcec89a7338a672a99f4bf7ae82131a9c

Contents?: true

Size: 669 Bytes

Versions: 3

Compression:

Stored size: 669 Bytes

Contents

require 'spec_helper'
module Exlibris
  module Aleph
    module API
      module Reader
        describe Patron do
          let(:root) do
            {
              'patron' => {
                'translate_change_active_library' => 'NYU50'
              }
            }
          end
          subject(:patron) { Patron.new(root) }
          it { should be_a Patron }
          describe '#root' do
            subject { patron.root }
            it { should eq root }
          end
          describe '#admin_library_code' do
            subject { patron.admin_library_code }
            it { should eql 'NYU50'}
          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/api/reader/patron_spec.rb
exlibris-aleph-2.0.3 spec/exlibris/aleph/api/reader/patron_spec.rb
exlibris-aleph-2.0.0 spec/exlibris/aleph/api/reader/patron_spec.rb