diff options
author | Thom May <thom@may.lt> | 2018-04-30 15:08:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 15:08:15 +0100 |
commit | 4a053a756e8ba4ab9d1fcad384396f465eb1cee7 (patch) | |
tree | 7919e4f766d2e534fef9ec319e240842820f75a6 /spec/unit | |
parent | 515d1683a6549da75905ff33ef3e2858d6d10fa7 (diff) | |
parent | ebe15d26013bc06a1d00f0e3ad8694c7a259054e (diff) | |
download | chef-4a053a756e8ba4ab9d1fcad384396f465eb1cee7.tar.gz |
Merge pull request #7207 from chef/tm/fixips
fix application tests on linux
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/application/client_spec.rb | 1 | ||||
-rw-r--r-- | spec/unit/application_spec.rb | 1 |
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..de6972b625 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 receive(: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 |