Commit 46793adc authored by Tim Smith's avatar Tim Smith
Browse files

Attempt to fix the failing cache spec


Signed-off-by: default avatarTim Smith <tsmith@chef.io>
parent a83db941
example_id | status | run_time |
--------------------------------------- | ------ | --------------- |
./spec/recipes/default_spec.rb[1:1:1] | passed | 0.0881 seconds |
./spec/recipes/default_spec.rb[1:1:2] | passed | 0.06005 seconds |
./spec/recipes/default_spec.rb[1:1:3] | passed | 0.08716 seconds |
./spec/recipes/default_spec.rb[1:1:4:1] | passed | 0.08661 seconds |
./spec/recipes/default_spec.rb[1:1:5:1] | passed | 0.0842 seconds |
./spec/recipes/default_spec.rb[1:1:1] | passed | 0.02305 seconds |
./spec/recipes/default_spec.rb[1:1:2] | passed | 0.02748 seconds |
./spec/recipes/default_spec.rb[1:1:3] | passed | 0.04117 seconds |
./spec/recipes/default_spec.rb[1:1:4:1] | passed | 0.04306 seconds |
./spec/recipes/default_spec.rb[1:1:5:1] | passed | 0.02668 seconds |
RSpec.describe 'chocolatey::default' do
context 'on Windows 2012r2' do
context 'on Windows' do
let(:proxy) { nil }
let(:proxy_config) { nil }
let(:proxy_env) { nil }
......@@ -12,8 +12,9 @@ RSpec.describe 'chocolatey::default' do
allow(Chef::Config).to receive(:[]).and_call_original
allow(Chef::Config).to receive(:[]).with('https_proxy').and_return(proxy_config)
allow(Chef::Config).to receive(:[]).with('file_cache_path').and_return('c:/chef/cache')
ChefSpec::SoloRunner.new(
platform: 'windows', version: '2012R2'
platform: 'windows'
).converge(described_recipe)
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment