summaryrefslogtreecommitdiff
path: root/chef-config/spec/unit/config_spec.rb
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-03-15 21:05:49 +0000
committerThom May <thom@may.lt>2016-03-15 21:05:49 +0000
commitc1a389c2a8452e9b796aa1d34c4d9e51f4af30c7 (patch)
treeed2cc9b0c226a21ba3b9ab6b101fa76cb2db4891 /chef-config/spec/unit/config_spec.rb
parent47cd0cb9f2c14ced5a17ea0d1da34b9aeaaf36d8 (diff)
parentff539423f067ee83c07dcf73cbf688c6a07f64ae (diff)
downloadchef-c1a389c2a8452e9b796aa1d34c4d9e51f4af30c7.tar.gz
Merge pull request #4658 from chef/tm/remote_file_download_progress11.9
Remote file download progress
Diffstat (limited to 'chef-config/spec/unit/config_spec.rb')
-rw-r--r--chef-config/spec/unit/config_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/chef-config/spec/unit/config_spec.rb b/chef-config/spec/unit/config_spec.rb
index dbde3d3160..797fe3a233 100644
--- a/chef-config/spec/unit/config_spec.rb
+++ b/chef-config/spec/unit/config_spec.rb
@@ -274,6 +274,14 @@ RSpec.describe ChefConfig::Config do
expect(ChefConfig::Config[:stream_execute_output]).to eq(false)
end
+ it "ChefConfig::Config[:show_download_progress] defaults to false" do
+ expect(ChefConfig::Config[:show_download_progress]).to eq(false)
+ end
+
+ it "ChefConfig::Config[:download_progress_interval] defaults to every 10%" do
+ expect(ChefConfig::Config[:download_progress_interval]).to eq(10)
+ end
+
it "ChefConfig::Config[:file_backup_path] defaults to /var/chef/backup" do
allow(ChefConfig::Config).to receive(:cache_path).and_return(primary_cache_path)
backup_path = is_windows ? "#{primary_cache_path}\\backup" : "#{primary_cache_path}/backup"