Convert existing tests over to beakr-rspec.
[puppet-modules/puppetlabs-apt.git] / spec / acceptance / class_spec.rb
similarity index 61%
rename from spec/system/class_spec.rb
rename to spec/acceptance/class_spec.rb
index 7bb6b8d64ef0e80faf7790ee4348adc2f3b32e57..f228e4c4565f7b8d825b52ca83a421d2c007c142 100644 (file)
@@ -1,4 +1,4 @@
-require 'spec_helper_system'
+require 'spec_helper_acceptance'
 
 describe 'apt class' do
 
@@ -10,11 +10,8 @@ describe 'apt class' do
       EOS
 
       # Run it twice and test for idempotency
-      puppet_apply(pp) do |r|
-        r.exit_code.should_not == 1
-        r.refresh
-        r.exit_code.should be_zero
-      end
+      apply_manifest(pp, :catch_failures => true)
+      apply_manifest(pp, :catch_failures => true)
     end
   end
 end