summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2019-11-15 16:08:00 -0800
committerTim Smith <tsmith84@gmail.com>2019-11-15 16:08:00 -0800
commit91a79ad502a1d5e5d789292320e2f23ae3df004a (patch)
tree82aad67a45f6826408cfd3dfbf7de7b5478cad9f
parent36ced2f214001d8b302dd555b7f29356db78174c (diff)
downloadchef-91a79ad502a1d5e5d789292320e2f23ae3df004a.tar.gz
Chefstyle fixes
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--spec/unit/resource/windows_package_spec.rb2
-rwxr-xr-xtasks/docs.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/windows_package_spec.rb b/spec/unit/resource/windows_package_spec.rb
index edf871f7fc..a0f746393d 100644
--- a/spec/unit/resource/windows_package_spec.rb
+++ b/spec/unit/resource/windows_package_spec.rb
@@ -58,7 +58,7 @@ describe Chef::Resource::WindowsPackage, "initialize" do
expect { resource.installer_type :msi }.not_to raise_error
expect { resource.installer_type :nsis }.not_to raise_error
expect { resource.installer_type :wise }.not_to raise_error
- expect { resource.installer_type 'msi' }.to raise_error(Chef::Exceptions::ValidationFailed)
+ expect { resource.installer_type "msi" }.to raise_error(Chef::Exceptions::ValidationFailed)
end
# String, Integer
diff --git a/tasks/docs.rb b/tasks/docs.rb
index 643eaee7a6..c347445c2e 100755
--- a/tasks/docs.rb
+++ b/tasks/docs.rb
@@ -26,7 +26,7 @@ namespace :docs_site do
if default.is_a?(String)
# .inspect wraps the value in quotes which we want for strings, but not sentences or symbols as strings
- return default.inspect unless default[0] == ":" || default.end_with?('.')
+ return default.inspect unless default[0] == ":" || default.end_with?(".")
end
default
end