summaryrefslogtreecommitdiff
path: root/spec/acceptance
diff options
context:
space:
mode:
authorHelen Campbell <helen@puppetlabs.com>2015-09-28 16:18:56 +0100
committerHelen Campbell <helen@puppetlabs.com>2015-09-28 16:18:56 +0100
commitc7c4d41a8286ab05af65afc1207c8cea4c11ffff (patch)
tree00140d6f633d63232a3408d85d7e5a42b497b457 /spec/acceptance
parent6f1d164da6fca26d41d5962c575900dfc792f004 (diff)
Added acceptance test and updated readme
Diffstat (limited to 'spec/acceptance')
-rwxr-xr-xspec/acceptance/empty_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/acceptance/empty_spec.rb b/spec/acceptance/empty_spec.rb
index 8b46aac..2d4df90 100755
--- a/spec/acceptance/empty_spec.rb
+++ b/spec/acceptance/empty_spec.rb
@@ -31,6 +31,20 @@ describe 'empty function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('opera
expect(r.stdout).to match(/Notice: output correct/)
end
end
+ it 'handles numerical values' do
+ pp = <<-EOS
+ $a = 7
+ $b = false
+ $o = empty($a)
+ if $o == $b {
+ notify { 'output correct': }
+ }
+ EOS
+
+ apply_manifest(pp, :catch_failures => true) do |r|
+ expect(r.stdout).to match(/Notice: output correct/)
+ end
+ end
end
describe 'failure' do
it 'handles improper argument counts'