Sha256: cb964d4c1a256cc2061848517c2ca0ceb1cc856e860c52195c4d169bc3012a09
Contents?: true
Size: 804 Bytes
Versions: 10
Compression:
Stored size: 804 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::Xservice::BorAuth.new( "http://aleph.library.nyu.edu", "NYU50", "BOBST", "N", "BOR_ID", "VERIFICATION") assert_nil(bor_auth.error, "Error is not nil.") end end test "permissions" do VCR.use_cassette('bor auth') do bor_auth = Exlibris::Aleph::Xservice::BorAuth.new( "http://aleph.library.nyu.edu", "NYU50", "BOBST", "N", "BOR_ID", "VERIFICATION") 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
10 entries across 10 versions & 1 rubygems