require "helper" require "minitest/autorun" class TestCollectionOutput < HoldingsTestCase def test_for_hash_output coll = load_fixture("holdings_7658449.xml") output = coll.to_hash assert_kind_of Hash, output assert_kind_of Array, output[:records] assert_equal '10746154', output[:records].first[:holding_id] assert_equal 'GB500 .G23', output[:records].first[:call_number] end def test_item_elements_in_hash_output coll = load_fixture("holdings_4191079.xml") output = coll.to_hash assert_equal '1', output[:records].first[:item_count] end def test_item_elements_in_hash_output coll = load_fixture("holdings_526843.xml") output = coll.to_hash # assert_equal '', output end end