test/search_test.rb in exlibris-primo-1.0.10 vs test/search_test.rb in exlibris-primo-1.0.11
- old
+ new
@@ -29,9 +29,28 @@
assert_not_nil record.related_links
end
end
end
+ def test_title_with_ampersand
+ VCR.use_cassette('search title with ampersand') do
+ search = Exlibris::Primo::Search.new.base_url!(@base_url).
+ institution!(@institution).title_is("wallace & gromit")
+ assert_not_nil search.size
+ assert_not_nil search.facets
+ assert((not search.facets.empty?))
+ assert_not_nil search.records
+ assert((not search.records.empty?))
+ search.records.each do |record|
+ assert_not_nil record.holdings
+ assert((not record.holdings.empty?))
+ assert_not_nil record.fulltexts
+ assert_not_nil record.tables_of_contents
+ assert_not_nil record.related_links
+ end
+ end
+ end
+
def test_chaining_author_title
VCR.use_cassette('search chaining author title') do
search = Exlibris::Primo::Search.new.base_url!(@base_url).
institution!(@institution).author_is(@author).and.title_is(@title)
assert_not_nil search.size
\ No newline at end of file