diff options
author | Tim Smith <tsmith@chef.io> | 2020-08-14 10:15:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-14 10:15:40 -0700 |
commit | c0c8c32e41a4496d3b78acc942f26f667045b3f8 (patch) | |
tree | e1ba9028cb89f0fc83fcbecb5ed778ac4ad6f630 /spec/functional/resource/rpm_spec.rb | |
parent | b9df6856a1eb4688f013ba0449a362f951ab40e5 (diff) | |
parent | 4848c89b7cc5e4a4d4fac7c8bff962f7df69f719 (diff) | |
download | chef-c0c8c32e41a4496d3b78acc942f26f667045b3f8.tar.gz |
Merge pull request #10284 from chef/exist
Fix File.exist throughout the codebase
Diffstat (limited to 'spec/functional/resource/rpm_spec.rb')
-rw-r--r-- | spec/functional/resource/rpm_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/rpm_spec.rb b/spec/functional/resource/rpm_spec.rb index 8a6cf32882..15b6731357 100644 --- a/spec/functional/resource/rpm_spec.rb +++ b/spec/functional/resource/rpm_spec.rb @@ -39,7 +39,7 @@ describe Chef::Resource::RpmPackage, :requires_root, external: exclude_test do # mytest rpm package works in centos, redhat and in suse without any dependency issues. else expect(shell_out("rpm -qa | grep mytest").exitstatus).to eq(0) - ::File.exists?("/opt/mytest/mytest.sh") # The mytest rpm package contains the mytest.sh file + ::File.exist?("/opt/mytest/mytest.sh") # The mytest rpm package contains the mytest.sh file end end @@ -48,7 +48,7 @@ describe Chef::Resource::RpmPackage, :requires_root, external: exclude_test do expect(shell_out("rpm -qa | grep dummy").exitstatus).to eq(1) else expect(shell_out("rpm -qa | grep mytest").exitstatus).to eq(1) - !::File.exists?("/opt/mytest/mytest.sh") + !::File.exist?("/opt/mytest/mytest.sh") end end |