From 7c81a3871801c36e23bc8bde22fe568e6fbed122 Mon Sep 17 00:00:00 2001 From: Jay Mundrawala Date: Thu, 12 Feb 2015 11:24:55 -0800 Subject: use Chef::Config.platform_specific_path --- spec/unit/application/client_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/unit/application') 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 -- cgit v1.2.1