summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-09 13:18:27 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-09 13:18:27 +0000
commit7782df6020704f51ee2d6194d8d3b74f28a53401 (patch)
tree55cb2a5502e5adb9a0ab9943d754d2c09f76daa6
parent48e66ecec133ef348c0a46b80998230116121f3b (diff)
Prefer single-quoted strings inside interpolations.
-rw-r--r--lib/custodian/protocoltest/dns.rb2
-rw-r--r--lib/custodian/protocoltest/http.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/custodian/protocoltest/dns.rb b/lib/custodian/protocoltest/dns.rb
index c544b38..8d47e14 100644
--- a/lib/custodian/protocoltest/dns.rb
+++ b/lib/custodian/protocoltest/dns.rb
@@ -115,7 +115,7 @@ module Custodian
#
if !(results - @resolve_expected).empty? or !(@resolve_expected - results).empty?
- @error = "DNS server *#{@host}* (#{@server_ip}) returned the wrong records for @#{resolve_name} IN #{resolve_type}@.\n\nWe expected '#{resolve_expected.join(",")}', but we received '#{results.join(",")}'\n"
+ @error = "DNS server *#{@host}* (#{@server_ip}) returned the wrong records for @#{resolve_name} IN #{resolve_type}@.\n\nWe expected '#{resolve_expected.join(',')}', but we received '#{results.join(',')}'\n"
end
@error.nil?
diff --git a/lib/custodian/protocoltest/http.rb b/lib/custodian/protocoltest/http.rb
index 665e789..c43aee3 100644
--- a/lib/custodian/protocoltest/http.rb
+++ b/lib/custodian/protocoltest/http.rb
@@ -317,7 +317,7 @@ module Custodian
# uh-oh! Resolution failed on both protocols!
if resolution_errors.length > 1
- errors << "Hostname did not resolve for #{resolution_errors.join(", ")}"
+ errors << "Hostname did not resolve for #{resolution_errors.join(', ')}"
end
if errors.length > 0