diff options
author | Thom May <thom@may.lt> | 2018-05-04 11:50:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 11:50:12 +0100 |
commit | f6bc28410cd860f02c321d08b593bb0e2cc81660 (patch) | |
tree | d1fbe8dc7b9c4bd9188935054323228252f1bbf5 | |
parent | 474286255187bfba92b106bc44a4faaee8fff507 (diff) | |
parent | 8a5891b2c144a8eb8460fed74cfd4f2e9291b337 (diff) | |
download | chef-f6bc28410cd860f02c321d08b593bb0e2cc81660.tar.gz |
Merge pull request #7222 from chef/rubocop_055
Fix two new Chefstyle warnings with Rubocop 0.55
-rw-r--r-- | spec/functional/resource/group_spec.rb | 2 | ||||
-rw-r--r-- | spec/unit/provider/powershell_script_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb index 03c14382e9..ea9aa5c2b7 100644 --- a/spec/functional/resource/group_spec.rb +++ b/spec/functional/resource/group_spec.rb @@ -81,7 +81,7 @@ describe Chef::Resource::Group, :requires_root_or_running_windows, :not_supporte if user && domain != "." computer_name = ENV["computername"] - !domain.casecmp(computer_name.downcase).zero? + !domain.casecmp(computer_name.downcase) == 0 end end diff --git a/spec/unit/provider/powershell_script_spec.rb b/spec/unit/provider/powershell_script_spec.rb index d7a1620530..f4663861c6 100644 --- a/spec/unit/provider/powershell_script_spec.rb +++ b/spec/unit/provider/powershell_script_spec.rb @@ -84,7 +84,7 @@ describe Chef::Provider::PowershellScript, "action_run" do provider_flags.find do |value| execution_policy_index += 1 - execution_policy_specified = value.casecmp("-ExecutionPolicy".downcase).zero? + execution_policy_specified = value.casecmp("-ExecutionPolicy".downcase) == 0 end execution_policy = execution_policy_specified ? provider_flags[execution_policy_index] : nil |