spec/system/basic_spec.rb in rspec-system-puppet-0.2.0 vs spec/system/basic_spec.rb in rspec-system-puppet-0.3.0

- old
+ new

@@ -1,7 +1,14 @@ require 'spec_helper_system' describe "basic tests:" do - it "check system_puppet_install works" do - system_puppet_install() + it "check puppet_install works" do + puppet_install() + end + + it 'check puppet_resource returns an exit code of 0' do + puppet_resource('user') do |r| + r[:exit_code].should == 0 + r[:stderr].should == '' + end end end