summaryrefslogtreecommitdiff
path: root/t/test-custodian-util-ping.rb
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:15 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:19:15 +0000
commita22b8e96ead33b0f97ed5243dbad7f7b6cd5135d (patch)
tree3fe30365cc9d793c752653a59614b52009ef9336 /t/test-custodian-util-ping.rb
parent7782df6020704f51ee2d6194d8d3b74f28a53401 (diff)
Prefer single-quotes when you don't need interpolation.
So "foo" is less good than 'foo'.
Diffstat (limited to 't/test-custodian-util-ping.rb')
-rwxr-xr-xt/test-custodian-util-ping.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/test-custodian-util-ping.rb b/t/test-custodian-util-ping.rb
index bf8ac43..e01ef8d 100755
--- a/t/test-custodian-util-ping.rb
+++ b/t/test-custodian-util-ping.rb
@@ -34,7 +34,7 @@ class TestPingUtil < Test::Unit::TestCase
# Normal construction works.
#
assert_nothing_raised do
- Custodian::Util::Ping.new("foo")
+ Custodian::Util::Ping.new('foo')
end
#
@@ -64,7 +64,7 @@ class TestPingUtil < Test::Unit::TestCase
#
def test_lookup_ipv4
- helper = Custodian::Util::Ping.new( "ipv4.steve.org.uk" )
+ helper = Custodian::Util::Ping.new( 'ipv4.steve.org.uk' )
assert( helper.is_ipv4? )
assert( ! helper.is_ipv6? )
@@ -76,7 +76,7 @@ class TestPingUtil < Test::Unit::TestCase
#
def test_lookup_ipv6
- helper = Custodian::Util::Ping.new( "ipv6.steve.org.uk" )
+ helper = Custodian::Util::Ping.new( 'ipv6.steve.org.uk' )
assert( helper.is_ipv6? )
assert( ! helper.is_ipv4? )
end