summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2014-06-30 15:48:05 +0200
committergebele <gebele@in-silico.ch>2014-06-30 15:48:05 +0200
commita964a44b61a7f5f6d54a8757f0e6dbf090533b9d (patch)
tree5ef47b2e5064bba621978e563f71c9d71cbbdee9
parent084ef5a8e6bcc0429b4a0877f4db37b4ad13f6d8 (diff)
fix response var
-rw-r--r--test/toxbank-investigation-sparql.rb2
1 files changed, 1 insertions, 1 deletions
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