summaryrefslogtreecommitdiff
path: root/spec/aliases
diff options
context:
space:
mode:
Diffstat (limited to 'spec/aliases')
-rw-r--r--spec/aliases/string_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/aliases/string_spec.rb b/spec/aliases/string_spec.rb
index 8e01d55..853b5af 100644
--- a/spec/aliases/string_spec.rb
+++ b/spec/aliases/string_spec.rb
@@ -6,6 +6,7 @@ if Puppet.version.to_f >= 4.0
[
'',
'one',
+ nil,
].each do |value|
describe value.inspect do
let(:params) {{ value: value }}
@@ -23,7 +24,7 @@ if Puppet.version.to_f >= 4.0
].each do |value|
describe value.inspect do
let(:params) {{ value: value }}
- it { is_expected.to compile.and_raise_error(/parameter 'value' expects a Stdlib::Compat::String = String/) }
+ it { is_expected.to compile.and_raise_error(/parameter 'value' expects a String/) }
end
end
end