From bf0db7a7ccae50b50a5e219ea3d18bda531ca357 Mon Sep 17 00:00:00 2001 From: Thom May Date: Mon, 30 Apr 2018 12:09:00 +0100 Subject: fix application tests on linux Signed-off-by: Thom May --- spec/unit/application/client_spec.rb | 1 + spec/unit/application_spec.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/spec/unit/application/client_spec.rb b/spec/unit/application/client_spec.rb index 0cd3cb3995..e15bb937e3 100644 --- a/spec/unit/application/client_spec.rb +++ b/spec/unit/application/client_spec.rb @@ -447,6 +447,7 @@ describe Chef::Application::Client, "configure_chef" do before do @original_argv = ARGV.dup ARGV.clear + allow(::File).to recieve(:read).and_call_original allow(::File).to receive(:read).with(Chef::Config.platform_specific_path("/etc/chef/client.rb")).and_return("") app.configure_chef end diff --git a/spec/unit/application_spec.rb b/spec/unit/application_spec.rb index 273f605905..76be387c22 100644 --- a/spec/unit/application_spec.rb +++ b/spec/unit/application_spec.rb @@ -101,6 +101,7 @@ describe Chef::Application do @app = Chef::Application.new allow(@app).to receive(:parse_options).and_return(true) + allow(::File).to receive(:read).with("/proc/sys/crypto/fips_enabled").and_call_original expect(Chef::Config).to receive(:export_proxies).and_return(true) end -- cgit v1.2.1