summaryrefslogtreecommitdiff
path: root/worker/tests/ftp.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-13 11:15:51 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-13 11:15:51 +0000
commitb02dab529ccf63bd61db2cc802bdbc4d65648ae8 (patch)
treebb9cfd21de438844e50f4bae71f3c49564ebd98d /worker/tests/ftp.rb
parentc1ea9ce5c169193e254844448c4c83acf308314e (diff)
Updated to use the new class-based API
Diffstat (limited to 'worker/tests/ftp.rb')
-rwxr-xr-xworker/tests/ftp.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/worker/tests/ftp.rb b/worker/tests/ftp.rb
index c856c00..a25fe27 100755
--- a/worker/tests/ftp.rb
+++ b/worker/tests/ftp.rb
@@ -45,8 +45,8 @@ class FTPTest
#
# Get the hostname & port to test against.
#
- host = @test_data[:target_host]
- port = @test_data[:test_port]
+ host = @test_data["target_host"]
+ port = @test_data["test_port"]
puts "FTP testing host #{host}:#{port}"
@@ -103,10 +103,10 @@ if __FILE__ == $0 then
# Sample data.
#
test = {
- :target_host => "mirror.bytemark.co.uk",
- :test_type => "ftp",
- :test_port => 21,
- :test_alert => "The FTP server no worky",
+ "target_host" => "mirror.bytemark.co.uk",
+ "test_type" => "ftp",
+ "test_port" => 21,
+ "test_alert" => "The FTP server no worky",
}