summaryrefslogtreecommitdiff
path: root/spec/functions/is_domain_name_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/is_domain_name_spec.rb')
-rwxr-xr-xspec/functions/is_domain_name_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/functions/is_domain_name_spec.rb b/spec/functions/is_domain_name_spec.rb
index 4d05f5c..5ab8369 100755
--- a/spec/functions/is_domain_name_spec.rb
+++ b/spec/functions/is_domain_name_spec.rb
@@ -61,4 +61,11 @@ describe "the is_domain_name function" do
result = scope.function_is_domain_name(["not valid"])
expect(result).to(be_falsey)
end
+
+ # Values obtained from Facter values will be frozen strings
+ # in newer versions of Facter:
+ it "should not throw an exception if passed a frozen string" do
+ result = scope.function_is_domain_name(["my.domain.name".freeze])
+ expect(result).to(be_truthy)
+ end
end