test/search_test.rb in exlibris-primo-1.1.3 vs test/search_test.rb in exlibris-primo-1.1.4
- old
+ new
@@ -207,11 +207,11 @@
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(/<span class="searchword">/ === record.display_title)
+ assert_match(/<span class="searchword">/, record.display_title)
end
end
end
def test_search_sort_by
@@ -342,6 +342,6 @@
assert_equal 0, search.size
assert_not_nil search.did_u_mean
assert_equal "digital video", search.did_u_mean
end
end
-end
\ No newline at end of file
+end