summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2018-04-30 12:09:00 +0100
committerThom May <thom@chef.io>2018-04-30 12:09:00 +0100
commitbf0db7a7ccae50b50a5e219ea3d18bda531ca357 (patch)
tree87b4bc36abcb54ee3294aa7b577ba8a7637d6648
parent515d1683a6549da75905ff33ef3e2858d6d10fa7 (diff)
downloadchef-tm/fixips.tar.gz
fix application tests on linuxtm/fixips
Signed-off-by: Thom May <thom@chef.io>
-rw-r--r--spec/unit/application/client_spec.rb1
-rw-r--r--spec/unit/application_spec.rb1
2 files changed, 2 insertions, 0 deletions
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