diff options
Diffstat (limited to 'test/puppet')
| -rwxr-xr-x | test/puppet/defaults.rb | 3 | ||||
| -rwxr-xr-x | test/puppet/tc_suidmanager.rb | 21 |
2 files changed, 13 insertions, 11 deletions
diff --git a/test/puppet/defaults.rb b/test/puppet/defaults.rb index bab6644d2..86c67e0be 100755 --- a/test/puppet/defaults.rb +++ b/test/puppet/defaults.rb @@ -49,8 +49,7 @@ class TestPuppetDefaults < Test::Unit::TestCase value = Puppet[param] unless value !~ notval - assert_nothing_raised { raise "%s is incorrectly set to %s" % - [param,value] } + assert_nothing_raised { raise "%s is incorrectly set to %s" % [param,value] } end } end diff --git a/test/puppet/tc_suidmanager.rb b/test/puppet/tc_suidmanager.rb index 2075427f8..0d51ddacd 100755 --- a/test/puppet/tc_suidmanager.rb +++ b/test/puppet/tc_suidmanager.rb @@ -81,16 +81,19 @@ class TestSUIDManager < Test::Unit::TestCase else set_exit_status! - Puppet::Util.expects(:execute).with( 'yay', - { :failonfail => false, - :uid => @user.uid, - :gid => @user.gid } - ).returns('output') + + Puppet::Util.expects(:execute).with( + 'yay', + { :failonfail => false, + :uid => @user.uid, + + :gid => @user.gid } + ).returns('output') output = Puppet::Util::SUIDManager.run_and_capture 'yay', - @user.uid, - @user.gid + @user.uid, + @user.gid assert_equal 'output', output.first assert_kind_of Process::Status, output.last @@ -119,8 +122,8 @@ class TestSUIDManager < Test::Unit::TestCase end def set_exit_status! - # We want to make sure $? is set, this is the only way I know how. - Kernel.system '' if $?.nil? + # We want to make sure $? is set, this is the only way I know how. + Kernel.system '' if $?.nil? end end |
