From 8d49db6bc78cd8f9344c4b9c1ce665938b08cdec Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 16 Apr 2015 17:02:26 +0200 Subject: added test for genelist --- test/toxbank-investigation-sparql.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3