Sha256: 7660f24dde9c5886296e6836083a011752f7eb1e9782e09533c83b7bf78742d0

Contents?: true

Size: 830 Bytes

Versions: 4

Compression:

Stored size: 830 Bytes

Contents

require 'test_helper'
class BorAuthTest < ActiveSupport::TestCase
  
  def setup
  end

  test "new" do
    VCR.use_cassette('bor auth') do
      bor_auth = 
        Exlibris::Aleph::BorAuth.new(
          "http://aleph.library.nyu.edu", "NYU50", "BOBST", "N", 
          "N12162279", "d4465aacaa645f2164908cd4184c09f0")
      assert_nil(bor_auth.error, "Error is not nil.")
    end
  end
  
  test "permissions" do
    VCR.use_cassette('bor auth') do
      bor_auth = 
        Exlibris::Aleph::BorAuth.new(
          "http://aleph.library.nyu.edu", "NYU50", "BOBST", "N", 
          "N12162279", "d4465aacaa645f2164908cd4184c09f0")
      assert_equal("51", bor_auth.permissions[:bor_status])
      assert_equal("CB", bor_auth.permissions[:bor_type])
      assert_equal("Y", bor_auth.permissions[:hold_on_shelf])
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
exlibris-aleph-0.1.6 test/unit/bor_auth_test.rb
exlibris-aleph-0.1.5 test/unit/bor_auth_test.rb
exlibris-aleph-0.1.4 test/unit/bor_auth_test.rb
exlibris-aleph-0.1.3 test/unit/bor_auth_test.rb