From e0395e785adfa1e6b9d336d501b3bd75cf4857a2 Mon Sep 17 00:00:00 2001 From: rautenberg Date: Tue, 7 Jan 2014 19:27:38 +0100 Subject: test for 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 a28ecf3..cbfab35 100644 --- a/test/toxbank-investigation-rest.rb +++ b/test/toxbank-investigation-rest.rb @@ -338,6 +338,12 @@ class TBInvestigationREST < MiniTest::Test assert_equal "text/uri-list", result.headers[:content_type] end + # check that linked FTP file is listed in uri-list + def test_06a_check_ftpfiles + result = OpenTox::RestClientWrapper.get("#{@@uri}", {}, {:accept => "text/uri-list", :subjectid => $pi[:subjectid]}).split("\n") + assert_match "#{@@uri}/isatab/JIC37_Ethanol_0.07_Internal_1_3.txt", result + end + # get investigation/{id} # @note accept:application/zip def test_07_get_investigation_zip -- cgit v1.2.3