summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zipbin3501166 -> 1829311 bytes
-rw-r--r--test/toxbank-investigation-sparql.rb6
2 files changed, 6 insertions, 0 deletions
diff --git a/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip b/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip
index 91dcfa7..5f05434 100644
--- a/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip
+++ b/test/data/toxbank-investigation/valid/GC-ToxBank-15_tb2.zip
Binary files differ
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