summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2012-03-29 12:07:32 +0200
committerChristoph Helma <helma@in-silico.ch>2012-03-29 12:07:32 +0200
commit34160f59df518515353067bdb0f7bc30ef9d5d8c (patch)
treeda7d0d7733ccc3c07b5fbbce9b7e86ac959aa0e8
parent7d25e6c9764cce853f73d85449e84f2d551717cd (diff)
not_found_error test for inexisting metadata
-rw-r--r--test/upload.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/upload.rb b/test/upload.rb
index 9ab5b03..92036ab 100644
--- a/test/upload.rb
+++ b/test/upload.rb
@@ -18,6 +18,8 @@ class UploadTest < Test::Unit::TestCase
def test_02_get_inexisting
response = `curl -k -H "Accept:text/uri-list" -i -H "subjectid:#{@@subjectid}" #{$toxbank_investigation[:uri]}/foo`.chomp
assert_match /404/, response
+ response = `curl -k -H "Accept:application/rdf+xml" -i -H "subjectid:#{@@subjectid}" #{$toxbank_investigation[:uri]}/999999/metadata`.chomp
+ assert_match /404/, response
end
def test_03_valid_zip_upload