From 54f2774cfbf286cdcd32f0ccf78c9338d23b11a5 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Tue, 7 Jan 2014 19:49:40 +0100 Subject: check mime_type of linked ftp-file --- test/toxbank-investigation-rest.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/toxbank-investigation-rest.rb b/test/toxbank-investigation-rest.rb index bc728f8..a8c8028 100644 --- a/test/toxbank-investigation-rest.rb +++ b/test/toxbank-investigation-rest.rb @@ -346,8 +346,8 @@ class TBInvestigationREST < MiniTest::Test # 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] + result = OpenTox::RestClientWrapper.get("#{@@uri}/isatab/JIC37_Ethanol_0.07_Internal_1_3.txt", {}, {:subjectid => $pi[:subjectid]}) + assert_match "text/plain", result.headers[:content_type] end # get investigation/{id} -- cgit v1.2.3