summaryrefslogtreecommitdiff
path: root/spec/functions/validate_re_spec.rb
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppet.com>2016-09-07 08:56:29 -0700
committerGitHub <noreply@github.com>2016-09-07 08:56:29 -0700
commitdce8d7b194e3f6d9bb24e076c6e835aeb671099a (patch)
treee223708e8404e6e52d4c2fafef3322bfea7f2ee7 /spec/functions/validate_re_spec.rb
parentd350ee49ee318353e9aa596c254ffbc40eba5b8d (diff)
parentf1edd2715a755573d7578839a3efe8473b79b5c5 (diff)
Merge pull request #649 from DavidS/modules-3737
(MODULES-3737) refactor validate_legacy and tests
Diffstat (limited to 'spec/functions/validate_re_spec.rb')
-rwxr-xr-xspec/functions/validate_re_spec.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/functions/validate_re_spec.rb b/spec/functions/validate_re_spec.rb
index 2ee3f47..2fa9ddd 100755
--- a/spec/functions/validate_re_spec.rb
+++ b/spec/functions/validate_re_spec.rb
@@ -28,22 +28,6 @@ describe 'validate_re' do
end
describe 'invalid inputs' do
- it {
- pending('should implement stricter type checking')
- is_expected.to run.with_params([], '').and_raise_error(Puppet::ParseError, /is not a String/)
- }
- it {
- pending('should implement stricter type checking')
- is_expected.to run.with_params('', {}).and_raise_error(Puppet::ParseError, /is not an Array/)
- }
- it {
- pending('should implement stricter type checking')
- is_expected.to run.with_params('', '', []).and_raise_error(Puppet::ParseError, /is not a String/)
- }
- it {
- pending('should implement stricter type checking')
- is_expected.to run.with_params(nil, nil).and_raise_error(Puppet::ParseError, /is not a String/)
- }
it { is_expected.to run.with_params('', []).and_raise_error(Puppet::ParseError, /does not match/) }
it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError, /does not match/) }
it { is_expected.to run.with_params('', 'two').and_raise_error(Puppet::ParseError, /does not match/) }