summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-03-12 13:23:44 -0700
committerJay Mundrawala <jdmundrawala@gmail.com>2015-03-12 17:04:19 -0700
commita1ad408b06d400c053d6bdb17e43d53bacb9ea86 (patch)
tree9511cf326adbc9a1e52f1f5dcc3016e7717490fe
parent6365752ea80d35cb9f3b2ca5a18a34d1c4252f90 (diff)
downloadchef-a1ad408b06d400c053d6bdb17e43d53bacb9ea86.tar.gz
Use FileUtils to delete directoryjdm/useradd-specs
-rw-r--r--spec/functional/resource/user/useradd_spec.rb2
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|