diff options
author | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:08:33 +0000 |
---|---|---|
committer | Steve Kemp <steve@steve.org.uk> | 2015-03-09 13:08:33 +0000 |
commit | 22b40326730fb7a4a8e2f5cb8d877f6a84494d02 (patch) | |
tree | c08f5ade5267c79cf3929bccc75dd4b704717500 /t/test-custodian-util-ping.rb | |
parent | 5cc24f3a9a25a4214f1ee85a24960cce9f4f9516 (diff) |
Avoid "Array.new" and "Hash.new"
Instead use {} + ().
Diffstat (limited to 't/test-custodian-util-ping.rb')
-rwxr-xr-x | t/test-custodian-util-ping.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-custodian-util-ping.rb b/t/test-custodian-util-ping.rb index efeef64..3dd363a 100755 --- a/t/test-custodian-util-ping.rb +++ b/t/test-custodian-util-ping.rb @@ -49,10 +49,10 @@ class TestPingUtil < Test::Unit::TestCase # A hostname is a string, not an array, hash, or similar. # assert_raise ArgumentError do - Custodian::Util::Ping.new( Hash.new) + Custodian::Util::Ping.new( {}) end assert_raise ArgumentError do - Custodian::Util::Ping.new( Array.new) + Custodian::Util::Ping.new( []) end |