From a964a44b61a7f5f6d54a8757f0e6dbf090533b9d Mon Sep 17 00:00:00 2001 From: gebele Date: Mon, 30 Jun 2014 15:48:05 +0200 Subject: fix response var --- test/toxbank-investigation-sparql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb index e8ff0c7..6bfefc7 100644 --- a/test/toxbank-investigation-sparql.rb +++ b/test/toxbank-investigation-sparql.rb @@ -298,7 +298,7 @@ class TBSPARQLTestExtended < MiniTest::Test response = OpenTox::RestClientWrapper.get "#{$investigation[:uri]}/sparql/investigation_by_factors", {:factorValues => "['http://purl.obolibrary.org/chebi/CHEBI:28748']"}, {:accept => "application/json", :subjectid => $pi[:subjectid]} #puts response result = JSON.parse(response) - inv_factors = result["results"]["bindings"].map{|n| "#{n["inv"]["value"]}:::#{n["factorname"]["value"]}:::#{n["value"]["value"]}"} + inv_factors = result["results"]["bindings"].map{|n| "#{n["investigation"]["value"]}:::#{n["factorname"]["value"]}:::#{n["value"]["value"]}"} assert_equal 200, response.code assert inv_factors.include?("#{@@uri}:::compound:::DOXORUBICIN") end -- cgit v1.2.3