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-testfactory.rb | |
parent | 5cc24f3a9a25a4214f1ee85a24960cce9f4f9516 (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.") |