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/concat_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/concat_spec.rb')
-rw-r--r-- | spec/acceptance/concat_spec.rb | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/spec/acceptance/concat_spec.rb b/spec/acceptance/concat_spec.rb index 1fe7729..24b5955 100644 --- a/spec/acceptance/concat_spec.rb +++ b/spec/acceptance/concat_spec.rb @@ -1,15 +1,17 @@ require 'spec_helper_acceptance' describe 'concat function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do - it 'should concat one array to another' do - pp = <<-EOS - $output = concat(['1','2','3'],['4','5','6']) - validate_array($output) - if size($output) != 6 { - fail("${output} should have 6 elements.") - } - EOS + describe 'success' do + it 'should concat one array to another' do + pp = <<-EOS + $output = concat(['1','2','3'],['4','5','6']) + validate_array($output) + if size($output) != 6 { + fail("${output} should have 6 elements.") + } + EOS - apply_manifest(pp, :catch_failures => true) + apply_manifest(pp, :catch_failures => true) + end end end |