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 | 3a96cc957dbd97c6ffeaea42f738e7c35b4acbc7 (patch) | |
tree | 1a709ddc989f52f065b681e0ee80265c31647ca4 /t/test-custodian-testfactory.rb | |
parent | d0f94ecdf76f1a3ff9e2d0e5c0f654c2089561cd (diff) |
Avoid "Array.new" and "Hash.new"
Instead use {} + ().
Diffstat (limited to 't/test-custodian-testfactory.rb')
-rwxr-xr-x | t/test-custodian-testfactory.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/test-custodian-testfactory.rb b/t/test-custodian-testfactory.rb index aef71c6..6a115ce 100755 --- a/t/test-custodian-testfactory.rb +++ b/t/test-custodian-testfactory.rb @@ -32,7 +32,7 @@ class TestTestFactory < Test::Unit::TestCase end assert_raise ArgumentError do - obj = Custodian::TestFactory.create( Array.new, nil ) + obj = Custodian::TestFactory.create( [], nil ) end @@ -290,7 +290,7 @@ class TestTestFactory < Test::Unit::TestCase def test_target_detection - a = Array.new() + a = [] a.push( "test.host.example.com must run ftp.") a.push( "ftp://test.host.example.com/ must run ftp.") |