diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-12 11:24:55 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-02-12 11:24:55 -0800 |
commit | 6ecabb7a428b6789b072344b01763028bc2aa153 (patch) | |
tree | 21213617c43a6859ab09f7cda366c0b92017420f | |
parent | a2c61718455c7bddb17dfb9de1e3cc7d543b54d1 (diff) | |
download | chef-jdm/windows-jenkins.tar.gz |
use Chef::Config.platform_specific_pathjdm/windows-jenkins
-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 |