diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-03-28 17:54:47 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-03-28 17:54:47 +0200 |
commit | caf62c09285a26af82826da98730ecc86ab22cf7 (patch) | |
tree | b5533ec3ba352da05345008a33d6312d927f7cb9 | |
parent | 8fba49742ee2535f0e50a94f3d5702fe2e0394fb (diff) |
add subjectids to upload test
-rw-r--r-- | test/upload.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/upload.rb b/test/upload.rb index ffc06d5..36152b0 100644 --- a/test/upload.rb +++ b/test/upload.rb @@ -11,7 +11,7 @@ class UploadTest < Test::Unit::TestCase end def test_01_get_all - response = `curl -k -i #{$toxbank_investigation[:uri]}` + response = `curl -k -H "subjectid:#{@@subjectid}" -i #{$toxbank_investigation[:uri]}` assert_match /200/, response end @@ -49,7 +49,7 @@ class UploadTest < Test::Unit::TestCase # get isatab files `curl -k -H "Accept:text/uri-list" -H "subjectid:#{@@subjectid}" #{uri}`.split("\n").each do |u| unless u.match(/[n3|zip]$/) - response = `curl -k -i -H Accept:text/tab-separated-values -H "subjectid:#{@@subjectid}" #{u}` + response = `curl -k -i -H "Accept:text/tab-separated-values" -H "subjectid:#{@@subjectid}" #{u}` assert_match /HTTP\/1.1 200 OK/, response.to_s.encode!('UTF-8', 'UTF-8', :invalid => :replace) end end |