Fixed ftp ref urls.

This commit is contained in:
Martin Edenhofer 2015-06-05 16:51:41 +02:00
parent b6161c8f0c
commit 5531f70f46

View file

@ -297,17 +297,17 @@ class UserAgentTest < ActiveSupport::TestCase
# ftp / 200
result = UserAgent.request(
'ftp://ftp.gwdg.de/msgs/banner.msg',
'ftp://root.cern.ch/pub/README-root-build.txt',
)
assert(result)
assert_equal(true, result.success?)
assert_equal('200', result.code)
assert_equal(String, result.body.class)
assert(result.body =~ /Gesellschaft/i)
assert(result.body =~ /instructions/i)
# ftp / 401
result = UserAgent.request(
'ftp://ftp.gwdg.de/msgs/not_existing.msg',
'ftp://root.cern.ch/pub/not_existing.msg',
)
assert(result)
assert_equal(false, result.success?)