summaryrefslogtreecommitdiff
path: root/chef-config/spec/unit
diff options
context:
space:
mode:
Diffstat (limited to 'chef-config/spec/unit')
-rw-r--r--chef-config/spec/unit/config_spec.rb4
-rw-r--r--chef-config/spec/unit/workstation_config_loader_spec.rb5
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