Sha256: 6920ece3281e2dac73c8f14d906ec6d69c5ffc13888a3c1308c0eb212bbb23bc

Contents?: true

Size: 786 Bytes

Versions: 3

Compression:

Stored size: 786 Bytes

Contents

require 'spec_helper'
module Exlibris
  module Aleph
    describe Patron, vcr: {cassette_name: 'patron'} do
      let(:id) { 'BOR_ID' }
      subject(:patron) { Patron.new(id) }
      it { should be_a Patron }
      describe '#id' do
        subject { patron.id }
        it { should eq id }
      end
      describe '#admin_library' do
        subject { patron.admin_library }
        it { should be_an AdminLibrary }
        it { should eql AdminLibrary.new('NYU50')}
      end
      describe '#address' do
        subject { patron.address }
        it { should be_an Patron::Address }
      end
      describe '#record' do
        let(:record_id) { 'NYU01000980206' }
        subject { patron.record(record_id) }
        it { should be_a Patron::Record }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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