test/link_test.rb in exlibris-primo-1.1.1 vs test/link_test.rb in exlibris-primo-1.1.2
- old
+ new
@@ -41,6 +41,16 @@
assert_equal "aleph002895625", link.record_id
assert_equal "aleph002895625", link.original_id
assert_equal "http://example.com", link.url
assert_equal "Related Link Instance", link.display
end
+
+ def test_escaped_ampersands
+ link = Exlibris::Primo::Fulltext.new :institution => @institution, :record_id => @record_id,
+ :original_id => @record_id, :url => "#{@url}?key1=value1&key2=value2&key3=value3", :display => "Fulltext Instance"
+ assert_equal "INSTITUTION", link.institution
+ assert_equal "aleph002895625", link.record_id
+ assert_equal "aleph002895625", link.original_id
+ assert_equal "http://example.com?key1=value1&key2=value2&key3=value3", link.url
+ assert_equal "Fulltext Instance", link.display
+ end
end
\ No newline at end of file