Sha256: 10284858bcd304ab717c67429c37d27ff959cb7d6098d316883e3de833a15246

Contents?: true

Size: 718 Bytes

Versions: 2

Compression:

Stored size: 718 Bytes

Contents

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

  test "new" 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
  
  test "permissions" do
    bor_auth = 
      Exlibris::Aleph::BorAuth.new(
        "http://aleph.library.nyu.edu", "NYU50", "BOBST", "N", 
        "N12162279", "d4465aacaa645f2164908cd4184c09f0")
    assert_equal("89", bor_auth.permissions[:bor_status])
    assert_equal("CB", bor_auth.permissions[:bor_type])
    assert_equal("Y", bor_auth.permissions[:hold_on_shelf])
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
exlibris-aleph-0.1.2 test/unit/bor_auth_test.rb
exlibris-aleph-0.1.1 test/unit/bor_auth_test.rb