Sha256: e70b1f37df319849b38ed05461795b9083619a962958a14a9330be2c87ee09fd
Contents?: true
Size: 718 Bytes
Versions: 3
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("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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
exlibris-aleph-0.1.0 | test/unit/bor_auth_test.rb |
exlibris-aleph-0.0.2 | test/unit/bor_auth_test.rb |
exlibris-aleph-0.0.1 | test/unit/bor_auth_test.rb |