summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2014-09-11 12:41:46 +0200
committergebele <gebele@in-silico.ch>2014-09-11 12:41:46 +0200
commit8bce43c0fc79bfbf8e3d8c382b54c655e6495d29 (patch)
tree9cb832c8aa4e274f793d815d9998e076369e15b5
parent2c5d0a7d7855c5089a1c0b06d5f7a3150f403f93 (diff)
changed assertion for empty uri-list
-rw-r--r--test/toxbank-investigation-types.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/toxbank-investigation-types.rb b/test/toxbank-investigation-types.rb
index 85bd747..fcdaf09 100644
--- a/test/toxbank-investigation-types.rb
+++ b/test/toxbank-investigation-types.rb
@@ -579,7 +579,7 @@ class TBInvestigationNoISADataValidPOSTchangeType < MiniTest::Test
assert_equal "Completed", task.hasStatus, "Task should be completed but is: #{task.hasStatus}. Task URI is #{task_uri} ."
# check files
response = OpenTox::RestClientWrapper.get(uri, {}, { :accept=>"text/uri-list", :subjectid => $pi[:subjectid] }).chomp
- assert_equal "No files to list. Please request metadata for details.", response, "uri-list should be empty but is #{response}"
+ assert_empty response, "uri-list should be empty but is #{response}"
puts "\ntype ftpData"
response = OpenTox::RestClientWrapper.put uri, {:type => "ftpData", :title => "New Title", :abstract => "test_change_type type ftpData", :owningOrg => "#{$user_service[:uri]}/organisation/G16", :authors => "#{$user_service[:uri]}/user/U271, #{$user_service[:uri]}/user/U479", :owningPro => "#{$user_service[:uri]}/project/G81", :keywords => "http://www.owl-ontologies.com/toxbank.owl/K124, http://www.owl-ontologies.com/toxbank.owl/K727", :ftpFile => "JIC37_Ethanol_0.07_Internal_1_3.txt, JIC37_Ethanol_0.07_Internal_1_4.txt"}, { :subjectid => $pi[:subjectid] }