diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-12 11:24:55 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-12 12:32:16 -0800 |
commit | 7c81a3871801c36e23bc8bde22fe568e6fbed122 (patch) | |
tree | 788b2c34564992eea06c5bf175c086437a8476f5 /spec/unit/application | |
parent | 3cd1cf091ef71e5cc65fb077ce133e4e652b593f (diff) | |
download | chef-7c81a3871801c36e23bc8bde22fe568e6fbed122.tar.gz |
use Chef::Config.platform_specific_path
Diffstat (limited to 'spec/unit/application')
-rw-r--r-- | spec/unit/application/client_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 2986303300..ea2ad473e5 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -26,7 +26,7 @@ describe Chef::Application::Client, "reconfigure" do before do allow(Kernel).to receive(:trap).and_return(:ok) - allow(::File).to receive(:read).with(/client\.rb/).and_return("") + allow(::File).to receive(:read).with(Chef::Config.platform_specific_path("/etc/chef/client.rb")).and_return("") @original_argv = ARGV.dup ARGV.clear @@ -262,7 +262,7 @@ describe Chef::Application::Client, "configure_chef" do before do @original_argv = ARGV.dup ARGV.clear - allow(::File).to receive(:read).with(/client\.rb/).and_return("") + allow(::File).to receive(:read).with(Chef::Config.platform_specific_path("/etc/chef/client.rb")).and_return("") app.configure_chef end |