summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2014-01-29 11:42:02 +0100
committergebele <gebele@in-silico.ch>2014-01-29 11:42:02 +0100
commit6f264a3dc9b39aaef3ca024fab2b2f8b8e76ebfe (patch)
tree559e0627ca8a0e0a2b68727b5a5d7531caea10d9
parent7426f3668bce728bc4194a9c29da2f2cbd69b67d (diff)
uncomment test/changed assertion
-rw-r--r--test/toxbank-investigation-rest.rb4
-rw-r--r--test/toxbank-investigation-sparql.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/test/toxbank-investigation-rest.rb b/test/toxbank-investigation-rest.rb
index 83186cf..0f2c7c5 100644
--- a/test/toxbank-investigation-rest.rb
+++ b/test/toxbank-investigation-rest.rb
@@ -625,7 +625,7 @@ class TBInvestigationREST < MiniTest::Test
response = OpenTox::RestClientWrapper.get $investigation[:uri], {}, {:accept => "text/uri-list", :subjectid => $pi[:subjectid]}
assert response.index(@@uri.to_s) != nil, "URI: #{@@uri} is not in uri-list"
end
-=begin
+
# delete investigation/{id}
# @note expect code 200
def test_99_a_delete_investigation
@@ -649,6 +649,6 @@ class TBInvestigationREST < MiniTest::Test
response = OpenTox::RestClientWrapper.get $investigation[:uri], {}, {:accept => "text/uri-list", :subjectid => $pi[:subjectid]}
refute_match /#{@@uri}/, response.to_s
end
-=end
+
end
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb
index 1bacfae..e64b1e4 100644
--- a/test/toxbank-investigation-sparql.rb
+++ b/test/toxbank-investigation-sparql.rb
@@ -111,7 +111,7 @@ class TBSPARQLTest < MiniTest::Test
response = OpenTox::RestClientWrapper.get "#{@@uri}/sparql/files_by_investigation", {}, {:accept => "application/json", :subjectid => $pi[:subjectid]}
result = JSON.parse(response)
files = result["results"]["bindings"].map{|n| "#{n["file"]["value"]}"}
- assert_equal 242, files.size
+ assert_equal 180, files.size
downloaduris = result["results"]["bindings"].map{|n| "#{n["downloaduri"]["value"]}"}
assert_match /#{@@uri}\/files\/JIC37_Ethanol_0\.07_Internal_1_3\.txt/, downloaduris.to_s
end