test/unit/tab_helper_test.rb in exlibris-aleph-0.1.0 vs test/unit/tab_helper_test.rb in exlibris-aleph-0.1.1

- old
+ new

@@ -189,9 +189,16 @@ assert_equal("51", helper.pickup_locations["nyu50"]["BOBST"]["##"]["DP"]["51"]["Y"][:patron_status]) assert_equal("Y", helper.pickup_locations["nyu50"]["BOBST"]["##"]["DP"]["51"]["Y"][:availability_status]) assert_equal(["BOBST", "NCOUR", "NIFA", "NISAW", "NREI", "NPOLY", "NYUAB", "NYUSE", "NYUSS"], helper.pickup_locations["nyu50"]["BOBST"]["##"]["DP"]["51"]["Y"][:pickup_locations]) end + test "pickup_locations on multiple lines" do + Exlibris::Aleph::TabHelper.init(@tab_path, @adms) + helper = Exlibris::Aleph::TabHelper.instance + assert_equal(["BOBST", "NCOUR", "NIFA","NISAW","NREI","NPOLY","NYUAB","NBERL", + "NFLOR","NLOND","NPRAG","NWADC"], helper.pickup_locations["nyu50"]["BOBST"]["##"]["##"]["89"]["#"][:pickup_locations]) + end + test "refresh_yml" do Exlibris::Aleph::TabHelper.init(@tab_path, @adms) helper = Exlibris::Aleph::TabHelper.instance assert_nil(helper.sub_libraries["NEW__"]) sub_library_file = "/mnt/aleph_tab/alephe/tab/tab_sub_library.eng" \ No newline at end of file