summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2012-04-16 11:07:52 +0200
committerrautenberg <rautenberg@in-silico.ch>2012-04-16 11:07:52 +0200
commitda91f344082075fde4afe2db89786aba645fe2c7 (patch)
tree789d524888196441bbff3e3518089736f4a9dc17
parentbb438372abd50e8e10d1e6229550bbc645e26418 (diff)
adapt tests: deleted investigations have no policies
-rw-r--r--test/toxbank-investigation-curl.rb2
-rw-r--r--test/toxbank-investigation-xls.rb2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/toxbank-investigation-curl.rb b/test/toxbank-investigation-curl.rb
index 1c6726c..04487fd 100644
--- a/test/toxbank-investigation-curl.rb
+++ b/test/toxbank-investigation-curl.rb
@@ -54,6 +54,8 @@ class UploadTest < Test::Unit::TestCase
response = `curl -Lk -i -X DELETE -H "subjectid:#{@@subjectid}" #{uri}`
assert_match /200/, response
response = `curl -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}`
+ assert_match /401/, response
+ response = `curl -I -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}`
assert_match /404/, response
end
end
diff --git a/test/toxbank-investigation-xls.rb b/test/toxbank-investigation-xls.rb
index 492d990..9ce8b2a 100644
--- a/test/toxbank-investigation-xls.rb
+++ b/test/toxbank-investigation-xls.rb
@@ -56,6 +56,8 @@ class UploadTest < Test::Unit::TestCase
response = `curl -Lk -i -X DELETE -H "subjectid:#{@@subjectid}" #{uri}`
assert_match /200/, response
response = `curl -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}`
+ assert_match /401/, response
+ response = `curl -I -Lk -i -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}`
assert_match /404/, response
end