diff options
Diffstat (limited to 'test/toxbank-investigation-rest.rb')
-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 |