Skip to content

Commit

Permalink
update collection members test to handle pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
syphax-bouazzouni committed Dec 17, 2022
1 parent 8be2a07 commit 263b639
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/controllers/test_collections_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 263b639

Please sign in to comment.