From 4c063e244a948d25fc0c4d4a68d561c6783936d4 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Tue, 7 Jan 2014 19:38:00 +0100 Subject: check mime_type of linked ftp-file --- test/toxbank-investigation-rest.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3