summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2014-01-07 19:49:40 +0100
committerrautenberg <rautenberg@in-silico.ch>2014-01-07 19:49:40 +0100
commit54f2774cfbf286cdcd32f0ccf78c9338d23b11a5 (patch)
treecde6fa131f2a8a208b5078d7a39e11e4f07d7a7a
parent4c063e244a948d25fc0c4d4a68d561c6783936d4 (diff)
check mime_type of linked ftp-file
-rw-r--r--test/toxbank-investigation-rest.rb4
1 files 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}