diff options
author | Hunter Haugen <hunter@puppetlabs.com> | 2014-04-08 15:04:55 -0700 |
---|---|---|
committer | Hunter Haugen <hunter@puppetlabs.com> | 2014-04-08 15:04:55 -0700 |
commit | f8f147e794ad305bb8f2dbf5e3a612f0659834ba (patch) | |
tree | 9b8b2093204c8ce56d7befdef4cef673fbc479b7 /spec/acceptance/base64_spec.rb | |
parent | fcbc4b59a69c62239d15aa11ce7fccaeb93da9cf (diff) | |
download | puppet-stdlib-f8f147e794ad305bb8f2dbf5e3a612f0659834ba.tar.gz puppet-stdlib-f8f147e794ad305bb8f2dbf5e3a612f0659834ba.tar.bz2 |
Add success/fail groups
Diffstat (limited to 'spec/acceptance/base64_spec.rb')
-rw-r--r-- | spec/acceptance/base64_spec.rb | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/spec/acceptance/base64_spec.rb b/spec/acceptance/base64_spec.rb index c29b3a7..30ba689 100644 --- a/spec/acceptance/base64_spec.rb +++ b/spec/acceptance/base64_spec.rb @@ -1,15 +1,17 @@ require 'spec_helper_acceptance' describe 'base64 function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do - it 'should encode then decode a string' do - pp = <<-EOS - $encodestring = base64('encode', 'thestring') - $decodestring = base64('decode', $encodestring) - notify { $decodestring: } - EOS + describe 'success' do + it 'should encode then decode a string' do + pp = <<-EOS + $encodestring = base64('encode', 'thestring') + $decodestring = base64('decode', $encodestring) + notify { $decodestring: } + EOS - apply_manifest(pp, :catch_failures => true) do |r| - expect(r.stdout).to match(/thestring/) + apply_manifest(pp, :catch_failures => true) do |r| + expect(r.stdout).to match(/thestring/) + end end end end |