test/pnx/links_test.rb in exlibris-primo-1.1.3 vs test/pnx/links_test.rb in exlibris-primo-1.1.4

- old
+ new

@@ -13,10 +13,15 @@ assert_equal("nyu_aleph000932393", record.fulltexts.first.original_id) assert_not_nil(record.fulltexts.first.url) assert_not_nil(record.fulltexts.first.display) end + def test_fulltexs_with_title_in_template_field + record = Exlibris::Primo::Record.new(:raw_xml => dedupmgr_record_xml) + assert_equal("linktosrc_code", record.fulltexts[1].display_code) + end + def test_tables_of_contents record = Exlibris::Primo::Record.new(:raw_xml => dedupmgr_record_xml) assert_not_nil record.tables_of_contents assert((not record.tables_of_contents.empty?)) assert_not_nil(record.tables_of_contents.first.institution) @@ -45,6 +50,6 @@ assert_equal("https://ezproxy.library.nyu.edu/login?url=http://addlink.example.com", record.related_links.first.url) assert_not_nil(record.related_links.first.display) assert_equal("Example Related Link", record.related_links.first.display) end end -end \ No newline at end of file +end