projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update stdlib
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
stdlib
/
spec
/
acceptance
/
validate_string_spec.rb
diff --git
a/3rdparty/modules/stdlib/spec/acceptance/validate_string_spec.rb
b/3rdparty/modules/stdlib/spec/acceptance/validate_string_spec.rb
index
8956f48
..
f04608d
100755
(executable)
--- a/
3rdparty/modules/stdlib/spec/acceptance/validate_string_spec.rb
+++ b/
3rdparty/modules/stdlib/spec/acceptance/validate_string_spec.rb
@@
-1,7
+1,7
@@
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
#! /usr/bin/env ruby -S rspec
require 'spec_helper_acceptance'
-describe 'validate_string function'
, :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem'))
do
+describe 'validate_string function' do
describe 'success' do
it 'validates a single argument' do
pp = <<-EOS
describe 'success' do
it 'validates a single argument' do
pp = <<-EOS
@@
-20,6
+20,13
@@
describe 'validate_string function', :unless => UNSUPPORTED_PLATFORMS.include?(f
apply_manifest(pp, :catch_failures => true)
end
apply_manifest(pp, :catch_failures => true)
end
+ it 'validates undef' do
+ pp = <<-EOS
+ validate_string(undef)
+ EOS
+
+ apply_manifest(pp, :catch_failures => true)
+ end
it 'validates a non-string' do
{
%{validate_string({ 'a' => 'hash' })} => "Hash",
it 'validates a non-string' do
{
%{validate_string({ 'a' => 'hash' })} => "Hash",