diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-04-13 17:46:13 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-04-13 17:46:13 +0200 |
commit | bb438372abd50e8e10d1e6229550bbc645e26418 (patch) | |
tree | dc3c92d79e4a7ee2872ae000934a593db4d3e438 | |
parent | 3647be0249667579baff9a94068b913fdaf50d54 (diff) |
delete investigation after tests
-rw-r--r-- | test/toxbank-investigation-rest.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/toxbank-investigation-rest.rb b/test/toxbank-investigation-rest.rb index 8849d60..3e1b295 100644 --- a/test/toxbank-investigation-rest.rb +++ b/test/toxbank-investigation-rest.rb @@ -78,15 +78,12 @@ class BasicTestCRUDInvestigation < Test::Unit::TestCase assert response.index(@@uri.to_s) != nil, "URI: #{@@uri} is not in uri-list" end -=begin # delete investigation/{id} def test_99_delete_investigation result = OpenTox::RestClientWrapper.delete @@uri.to_s, {}, :subjectid => @@subjectid - assert_raise OpenTox::NotFoundError do - OpenTox::RestClientWrapper.get @@uri.to_s, {}, {:accept => "text/uri-list", :subjectid => @@subjectid} - end + assert result.match(/^Investigation [\d]+ deleted$/) + assert !OpenTox::Authorization.uri_has_policy(@@uri.to_s, @@subjectid) end -=end end |