diff options
author | David Schmitt <david.schmitt@puppet.com> | 2016-10-04 13:48:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-04 13:48:30 +0100 |
commit | 440f98b45a79528c36c3286de70f5e8a2fe4466a (patch) | |
tree | 3222c9b0969de0df0d28b8e423f16440243e11cc /spec/functions | |
parent | 7228160175a17fb3d7f5b464553ef6c7791cf140 (diff) | |
parent | cce67b42bb6d09d4e9773b64e28c07d8a93ed088 (diff) |
Merge pull request #662 from domcleal/validate-string-undef
Permit undef passed as `nil` to validate_string
Diffstat (limited to 'spec/functions')
-rwxr-xr-x | spec/functions/validate_string_spec.rb | 1 |
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 |