summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2015-04-16 17:02:26 +0200
committergebele <gebele@in-silico.ch>2015-04-16 17:02:26 +0200
commit8d49db6bc78cd8f9344c4b9c1ce665938b08cdec (patch)
tree3490a0c970f9451c97f8a0a3113fbd14ecee5e01
parenta2a65249c1a3828365476a1b0d006f5b883f5472 (diff)
added test for genelist
-rw-r--r--test/toxbank-investigation-sparql.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb
index 5bc3ddd..f0e78ad 100644
--- a/test/toxbank-investigation-sparql.rb
+++ b/test/toxbank-investigation-sparql.rb
@@ -197,6 +197,11 @@ class TBSPARQLTest < MiniTest::Test
#assert value.include?("http://purl.obolibrary.org/chebi/CHEBI:28748")
end
+ def test_17_genelist
+ response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/genelist", {}, {:accept => "application/json", :subjectid => $pi[:subjectid]}
+ result = JSON.parse(response)
+ assert result["head"]["vars"].include?("genes")
+ end
def test_30_empty_factorValues_search
assert_raises OpenTox::BadRequestError do