diff options
author | rautenberg <rautenberg@in-silico.ch> | 2014-01-07 19:27:38 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2014-01-07 19:27:38 +0100 |
commit | e0395e785adfa1e6b9d336d501b3bd75cf4857a2 (patch) | |
tree | 52b2d171da0bd1f5688d6d0fa69e9591c5752811 | |
parent | 4f02a43d4c46906baf9702af7a868470e3d9b2c4 (diff) |
test for 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 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 |