diff options
author | gebele <gebele@in-silico.ch> | 2014-09-09 14:30:07 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2014-09-09 14:30:07 +0200 |
commit | 2c5d0a7d7855c5089a1c0b06d5f7a3150f403f93 (patch) | |
tree | fa032f20783618e10c54dde08b2de1a1efe65920 | |
parent | 4c3e40aa525ca698a29a6b4c5e823310df56eb6a (diff) |
reopen test block;changed assertion
-rw-r--r-- | test/toxbank-investigation-types.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/toxbank-investigation-types.rb b/test/toxbank-investigation-types.rb index eff9730..85bd747 100644 --- a/test/toxbank-investigation-types.rb +++ b/test/toxbank-investigation-types.rb @@ -298,7 +298,6 @@ class TBInvestigationNoISADataValidPOST < MiniTest::Test @g.query(:predicate => RDF::DC.abstract){|r| assert_match /test_01_post_type_nodata/, r[2].to_s} @g.query(:predicate => RDF::TB.isSummarySearchable){|r| assert_match /false/, r[2].to_s} @g.query(:predicate => RDF::TB.isPublished){|r| assert_match /false/, r[2].to_s} -=begin # PUT response = OpenTox::RestClientWrapper.put @uri, {:type => "noData", :title => "Second Title", :abstract => "test_01_post_type_nodata PUT", :owningOrg => "#{$user_service[:uri]}/organisation/G16", :owningPro => "#{$user_service[:uri]}/project/G81", :authors => "#{$user_service[:uri]}/user/U271, #{$user_service[:uri]}/user/U479", :keywords => "http://www.owl-ontologies.com/toxbank.owl/K124, http://www.owl-ontologies.com/toxbank.owl/K727"}, { :subjectid => $pi[:subjectid] } task_uri = response.chomp @@ -336,7 +335,6 @@ class TBInvestigationNoISADataValidPOST < MiniTest::Test # DELETE response = OpenTox::RestClientWrapper.delete @uri.to_s, {}, { :subjectid => $pi[:subjectid] } assert_equal "200", response.code.to_s -=end end def test_02_post_type_ftpdata @@ -581,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 uri+"/files/"+uri.split("/").last+".nt", response, "uri-list should be equal to #{uri.split("/").last} but is #{response}" + assert_equal "No files to list. Please request metadata for details.", 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] } |