summaryrefslogtreecommitdiff
path: root/t/test-custodian-testfactory.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:08:33 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:08:33 +0000
commit22b40326730fb7a4a8e2f5cb8d877f6a84494d02 (patch)
treec08f5ade5267c79cf3929bccc75dd4b704717500 /t/test-custodian-testfactory.rb
parent5cc24f3a9a25a4214f1ee85a24960cce9f4f9516 (diff)
Avoid "Array.new" and "Hash.new"
Instead use {} + ().
Diffstat (limited to 't/test-custodian-testfactory.rb')
-rwxr-xr-xt/test-custodian-testfactory.rb4
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.")