summaryrefslogtreecommitdiff
path: root/spec/functions/validate_string_spec.rb
diff options
context:
space:
mode:
authorDavid Schmitt <david.schmitt@puppet.com>2016-10-04 13:48:30 +0100
committerGitHub <noreply@github.com>2016-10-04 13:48:30 +0100
commit440f98b45a79528c36c3286de70f5e8a2fe4466a (patch)
tree3222c9b0969de0df0d28b8e423f16440243e11cc /spec/functions/validate_string_spec.rb
parent7228160175a17fb3d7f5b464553ef6c7791cf140 (diff)
parentcce67b42bb6d09d4e9773b64e28c07d8a93ed088 (diff)
Merge pull request #662 from domcleal/validate-string-undef
Permit undef passed as `nil` to validate_string
Diffstat (limited to 'spec/functions/validate_string_spec.rb')
-rwxr-xr-xspec/functions/validate_string_spec.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/functions/validate_string_spec.rb b/spec/functions/validate_string_spec.rb
index b5ce763..0907ede 100755
--- a/spec/functions/validate_string_spec.rb
+++ b/spec/functions/validate_string_spec.rb
@@ -18,6 +18,7 @@ describe 'validate_string' do
describe 'valid inputs' do
it { is_expected.to run.with_params('') }
+ it { is_expected.to run.with_params(nil) }
it { is_expected.to run.with_params('one') }
it { is_expected.to run.with_params('one', 'two') }
end