From b02dab529ccf63bd61db2cc802bdbc4d65648ae8 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 13 Nov 2012 11:15:51 +0000 Subject: Updated to use the new class-based API --- worker/tests/ftp.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'worker/tests/ftp.rb') 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", } -- cgit v1.2.1