diff options
Diffstat (limited to 'test/toxbank-investigation-sparql.rb')
-rw-r--r-- | test/toxbank-investigation-sparql.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb index 6c4b8f5..48ca418 100644 --- a/test/toxbank-investigation-sparql.rb +++ b/test/toxbank-investigation-sparql.rb @@ -415,6 +415,12 @@ class TBSPARQLTestExtended < MiniTest::Test end end + def test_22_biosearch_json + # check the json output for a bio search gene + response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/biosearch", {:geneIdentifiers => "['entrez:3075']"}, {:accept => "application/json", :subjectid => $pi[:subjectid]} + assert response.include?("Entrez:3075") + end + # delete investigation/{id} # @note expect code 200 def test_90_delete_investigation |