Fixed ftp ref urls.
This commit is contained in:
parent
b6161c8f0c
commit
5531f70f46
1 changed files with 3 additions and 3 deletions
|
@ -297,17 +297,17 @@ class UserAgentTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
# ftp / 200
|
# ftp / 200
|
||||||
result = UserAgent.request(
|
result = UserAgent.request(
|
||||||
'ftp://ftp.gwdg.de/msgs/banner.msg',
|
'ftp://root.cern.ch/pub/README-root-build.txt',
|
||||||
)
|
)
|
||||||
assert(result)
|
assert(result)
|
||||||
assert_equal(true, result.success?)
|
assert_equal(true, result.success?)
|
||||||
assert_equal('200', result.code)
|
assert_equal('200', result.code)
|
||||||
assert_equal(String, result.body.class)
|
assert_equal(String, result.body.class)
|
||||||
assert(result.body =~ /Gesellschaft/i)
|
assert(result.body =~ /instructions/i)
|
||||||
|
|
||||||
# ftp / 401
|
# ftp / 401
|
||||||
result = UserAgent.request(
|
result = UserAgent.request(
|
||||||
'ftp://ftp.gwdg.de/msgs/not_existing.msg',
|
'ftp://root.cern.ch/pub/not_existing.msg',
|
||||||
)
|
)
|
||||||
assert(result)
|
assert(result)
|
||||||
assert_equal(false, result.success?)
|
assert_equal(false, result.success?)
|
||||||
|
|
Loading…
Reference in a new issue