summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-12-12 12:44:58 +0100
committergebele <gebele@in-silico.ch>2013-12-12 12:44:58 +0100
commite08981d7262317b64f3556d4343e8175ab0f3ef7 (patch)
treefea52813aca02519752ce62de1e1a87b23fcfab3
parent5ed955184bcaceb7e7a005e5443a2fde2a9ec1cd (diff)
init sparql for gene test
-rw-r--r--test/toxbank-investigation-sparql.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb
index a39c39a..f317b9a 100644
--- a/test/toxbank-investigation-sparql.rb
+++ b/test/toxbank-investigation-sparql.rb
@@ -182,7 +182,17 @@ class TBSPARQLTest < MiniTest::Test
result = JSON.parse(response)
#puts result
#inv_foldchange = result["results"]["bindings"].map{|n| ""}
- #assert inv_qvalue.include?("")
+ #assert inv_foldchange.include?("")
+ assert_equal 200, response.code
+ end
+
+ #TODO assertions
+ def test_19_investigation_by_genes
+ response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/investigation_by_genes", {:geneIdentifiers => "[uniprot:P10809,genesymbol:HSPD1,unigene:Hs.595053,refseq:NM_002156,entrez:3329]"}, {:accept => "application/json", :subjectid => $pi[:subjectid]}
+ result = JSON.parse(response)
+ #puts result
+ #inv_genes = result["results"]["bindings"].map{|n| ""}
+ #assert inv_genes.include?("")
assert_equal 200, response.code
end