diff options
author | Thomas Dziedzic <thomas@pagerduty.com> | 2017-11-11 17:01:55 -0800 |
---|---|---|
committer | Thomas Dziedzic <thomas@pagerduty.com> | 2017-11-11 17:24:11 -0800 |
commit | 0762237c6deb110aad940e4514955ec07789e7c3 (patch) | |
tree | b6b94b0cd9bbde447093d452e9bcc9b8a74a894e /spec/support | |
parent | 223d9556f1b98e548f26d1ebe4b8eee5f1c98db2 (diff) | |
download | chef-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')
-rw-r--r-- | spec/support/shared/functional/execute_resource.rb | 2 |
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 |