diff options
author | Lamont Granquist <lamont@chef.io> | 2019-07-08 16:47:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-08 16:47:38 -0700 |
commit | cfdd8523b66c92d988547269380319ac250b3ee9 (patch) | |
tree | d4983e2d9ca8b40f791e68152b7bfd99d4cd0fd7 /chef-config/spec | |
parent | 643899fb580385968465c7e15e4f20908fc6c5ac (diff) | |
parent | ac56ffafe24e39fffb02cc1fbc0d3f27303390be (diff) | |
download | chef-cfdd8523b66c92d988547269380319ac250b3ee9.tar.gz |
Merge pull request #8711 from chef/lcg/new-chefstyle2
More Chefstyle updates
Diffstat (limited to 'chef-config/spec')
-rw-r--r-- | chef-config/spec/unit/config_spec.rb | 4 | ||||
-rw-r--r-- | chef-config/spec/unit/workstation_config_loader_spec.rb | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/chef-config/spec/unit/config_spec.rb b/chef-config/spec/unit/config_spec.rb index 378cc4a4a1..dec5b8755f 100644 --- a/chef-config/spec/unit/config_spec.rb +++ b/chef-config/spec/unit/config_spec.rb @@ -195,7 +195,7 @@ RSpec.describe ChefConfig::Config do [ false, true ].each do |is_windows| - context "On #{is_windows ? 'Windows' : 'Unix'}" do + context "On #{is_windows ? "Windows" : "Unix"}" do def to_platform(*args) ChefConfig::Config.platform_specific_path(*args) end @@ -618,7 +618,7 @@ RSpec.describe ChefConfig::Config do # On Windows, we'll detect an omnibus build and set this to the # cacert.pem included in the package, but it's nil if you're on Windows # w/o omnibus (e.g., doing development on Windows, custom build, etc.) - if !is_windows + unless is_windows it "ChefConfig::Config[:ssl_ca_file] defaults to nil" do expect(ChefConfig::Config[:ssl_ca_file]).to be_nil end diff --git a/chef-config/spec/unit/workstation_config_loader_spec.rb b/chef-config/spec/unit/workstation_config_loader_spec.rb index e1717b6574..e1cab3d4d0 100644 --- a/chef-config/spec/unit/workstation_config_loader_spec.rb +++ b/chef-config/spec/unit/workstation_config_loader_spec.rb @@ -375,7 +375,8 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do before do ChefConfig::Config[:config_d_dir] = tempdir allow(config_loader).to receive(:path_exists?).with( - an_instance_of(String)).and_return(false) + an_instance_of(String) + ).and_return(false) end after do @@ -516,7 +517,7 @@ RSpec.describe ChefConfig::WorkstationConfigLoader do -----BEGIN RSA PRIVATE KEY----- foo EOH -) + ) end end |