diff options
author | rautenberg <rautenberg@in-silico.ch> | 2014-01-07 19:38:00 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2014-01-07 19:38:00 +0100 |
commit | 4c063e244a948d25fc0c4d4a68d561c6783936d4 (patch) | |
tree | 18eef032337614c3d49f6254b6d8b3dc62eb3739 | |
parent | a767ad22ebafc81eeb7e43b765e48a111f1dad37 (diff) |
check mime_type of linked ftp-file
-rw-r--r-- | test/toxbank-investigation-rest.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/toxbank-investigation-rest.rb b/test/toxbank-investigation-rest.rb index edbf2a9..bc728f8 100644 --- a/test/toxbank-investigation-rest.rb +++ b/test/toxbank-investigation-rest.rb @@ -344,6 +344,12 @@ class TBInvestigationREST < MiniTest::Test assert_match "#{@@uri}/isatab/JIC37_Ethanol_0.07_Internal_1_3.txt", result.to_s end + # check that linked FTP file has mime_type + def test_06b_check_ftpfiles_type + result = OpenTox::RestClientWrapper.get("#{@@uri}/isatab/JIC37_Ethanol_0.07_Internal_1_3.txt", {}, {:subjectid => $pi[:subjectid]}).split("\n") + assert_equal "text/plain", result.headers[:content_type] + end + # get investigation/{id} # @note accept:application/zip def test_07_get_investigation_zip |