From 263b639ff327731bafed5535a40dbf8be98d2f0e Mon Sep 17 00:00:00 2001 From: Syphax Bouazzouni Date: Sun, 18 Dec 2022 00:35:27 +0100 Subject: [PATCH] update collection members test to handle pagination --- test/controllers/test_collections_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/test_collections_controller.rb b/test/controllers/test_collections_controller.rb index c3af749c..2b9c9692 100644 --- a/test/controllers/test_collections_controller.rb +++ b/test/controllers/test_collections_controller.rb @@ -62,12 +62,12 @@ def test_collection_members } known_collections.each do |id, array| - call = "/ontologies/#{ont.acronym}/collections/#{CGI.escape(id.to_s)}/members" + call = "/ontologies/#{ont.acronym}/collections/#{CGI.escape(id.to_s)}/members?pagesize=1000" get call assert last_response.ok? instances = MultiJson.load(last_response.body) - assert_equal array[1], instances.size - assert_equal "http://www.w3.org/2004/02/skos/core#Concept", instances.first["@type"] + assert_equal array[1], instances['collection'].size + assert_equal "http://www.w3.org/2004/02/skos/core#Concept", instances['collection'].first["@type"] end end