diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-12 13:23:44 -0700 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-12 17:04:19 -0700 |
commit | a1ad408b06d400c053d6bdb17e43d53bacb9ea86 (patch) | |
tree | 9511cf326adbc9a1e52f1f5dcc3016e7717490fe | |
parent | 6365752ea80d35cb9f3b2ca5a18a34d1c4252f90 (diff) | |
download | chef-a1ad408b06d400c053d6bdb17e43d53bacb9ea86.tar.gz |
Use FileUtils to delete directoryjdm/useradd-specs
-rw-r--r-- | spec/functional/resource/user/useradd_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/functional/resource/user/useradd_spec.rb b/spec/functional/resource/user/useradd_spec.rb index 97c5c7c521..3e4e4e7604 100644 --- a/spec/functional/resource/user/useradd_spec.rb +++ b/spec/functional/resource/user/useradd_spec.rb @@ -79,7 +79,7 @@ describe Chef::Provider::User::Useradd, metadata do def try_cleanup ['/home/cheftestfoo', '/home/cheftestbar'].each do |f| - shell_out("rm", "-r", f) + FileUtils.rm_rf(f) if File.exists? f end ['cf-test'].each do |u| |