Sha256: e206bd301981f41dcfb0915bf741f879c0a4a58633ca5967fdb39e775b8b1eda
Contents?: true
Size: 1000 Bytes
Versions: 4
Compression:
Stored size: 1000 Bytes
Contents
require 'test_helper' class AlephBorAuthTest < ActiveSupport::TestCase def setup activate_authlogic controller.session[:session_id] = "FakeSessionID" # controller.cookies[:PDS_HANDLE] = { :value => VALID_PDS_HANDLE_FOR_NEW_NYU } controller.cookies[:iPlanetDirectoryPro] = { :value => VALID_OPENSSO_FOR_NYU } end test "new" do bor_auth = AuthpdsNyu::Exlibris::Aleph::BorAuth.new( "http://alephstage.library.nyu.edu", "NYU50", "BOBST", "N", "N12162279", "d4465aacaa645f2164908cd4184c09f0") assert_nil(bor_auth.error, "Error is not nil.") end test "permissions" do bor_auth = AuthpdsNyu::Exlibris::Aleph::BorAuth.new( "http://alephstage.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
4 entries across 4 versions & 1 rubygems