./test/unit/aleph_patron_test.rb in umlaut-3.0.0alpha9 vs ./test/unit/aleph_patron_test.rb in umlaut-3.0.0alpha10

- old
+ new

@@ -1,9 +1,9 @@ -require File.dirname(__FILE__) + '/../test_helper' -class AlephPatronTest < ActiveSupport::TestCase +require 'test_helper' +class AlephPatronTest < Test::Unit::TestCase def setup - @primo_config = YAML.load_file("#{Rails.root}/config/umlaut_config/primo.yml") + @primo_config = YAML.load_file("#{Rails.root}/config/primo.yml") @nyu_aleph_config = @primo_config["sources"]["nyu_aleph"] @rest_url = @nyu_aleph_config["rest_url"] @aleph_doc_library = "NYU01" @aleph_doc_number = "000062856" @nyuidn = "N12162279" @@ -15,12 +15,12 @@ end # Test exception handling for bogus response. def test_bogus_response patron = Exlibris::Aleph::Patron.new(@nyuidn, @bogus_url) - assert_raise(REXML::ParseException) { patron.loans } - assert_raise(REXML::ParseException) { patron.renew_loans() } - assert_raise(REXML::ParseException) { patron.renew_loans(@aleph_renew_item_id) } + assert_raise(MultiXml::ParseError) { patron.loans } + assert_raise(MultiXml::ParseError) { patron.renew_loans() } + assert_raise(MultiXml::ParseError) { patron.renew_loans(@aleph_renew_item_id) } assert_raise(RuntimeError) { patron.place_hold(@aleph_adm_library, @aleph_doc_library, @aleph_doc_number, @aleph_item_id, {:pickup_location => @pickup_location}) } end # Test search for a single Primo document. def test_patron \ No newline at end of file