From 34160f59df518515353067bdb0f7bc30ef9d5d8c Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 29 Mar 2012 12:07:32 +0200 Subject: not_found_error test for inexisting metadata --- test/upload.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3