summaryrefslogtreecommitdiff
path: root/spec/support/shared/functional
diff options
context:
space:
mode:
authorThomas Dziedzic <thomas@pagerduty.com>2017-11-11 17:01:55 -0800
committerThomas Dziedzic <thomas@pagerduty.com>2017-11-11 17:24:11 -0800
commit0762237c6deb110aad940e4514955ec07789e7c3 (patch)
treeb6b94b0cd9bbde447093d452e9bcc9b8a74a894e /spec/support/shared/functional
parent223d9556f1b98e548f26d1ebe4b8eee5f1c98db2 (diff)
downloadchef-0762237c6deb110aad940e4514955ec07789e7c3.tar.gz
replace deprecated Dir.exists? with Dir.exist?
.rvm/gems/ruby-2.4.2/gems/chef-config-13.6.4/lib/chef-config/path_helper.rb:238: warning: Dir.exists? is a deprecated name, use Dir.exist? instead
Diffstat (limited to 'spec/support/shared/functional')
-rw-r--r--spec/support/shared/functional/execute_resource.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/functional/execute_resource.rb b/spec/support/shared/functional/execute_resource.rb
index 4f7cea1cd1..1a14bb38c3 100644
--- a/spec/support/shared/functional/execute_resource.rb
+++ b/spec/support/shared/functional/execute_resource.rb
@@ -63,7 +63,7 @@ shared_context "a command that can be executed as an alternate user" do
after do
File.delete(script_output_path) if File.exists?(script_output_path)
- Dir.rmdir(script_output_dir) if Dir.exists?(script_output_dir)
+ Dir.rmdir(script_output_dir) if Dir.exist?(script_output_dir)
end
end