diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-12-26 20:32:49 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-12-26 20:32:49 -0800 |
commit | 0cefcaa319b0d2f07241b78bf7d6f06de03d07ef (patch) | |
tree | 5c1061b328d1769e8ad1c995db78a5521736c33e /spec/unit/resource/conditional_spec.rb | |
parent | 50a0001bae754c66feb69c84b64cb305a03a34d2 (diff) | |
download | chef-Performance_StringIdentifierArgument.tar.gz |
Resolve Performance/StringIdentifierArgument warningsPerformance_StringIdentifierArgument
Inernally it's all a symbol so skip the conversion
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/resource/conditional_spec.rb')
-rw-r--r-- | spec/unit/resource/conditional_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource/conditional_spec.rb b/spec/unit/resource/conditional_spec.rb index 5f99238919..5374157336 100644 --- a/spec/unit/resource/conditional_spec.rb +++ b/spec/unit/resource/conditional_spec.rb @@ -59,7 +59,7 @@ describe Chef::Resource::Conditional do describe "after running a negative/false command given as a string" do before do - @status.send("success?=", false) + @status.send(:"success?=", false) @conditional = Chef::Resource::Conditional.only_if(@parent_resource, "false") end @@ -80,7 +80,7 @@ describe Chef::Resource::Conditional do describe "after running a negative/false command given as an array" do before do - @status.send("success?=", false) + @status.send(:"success?=", false) @conditional = Chef::Resource::Conditional.only_if(@parent_resource, ["false"]) end @@ -162,7 +162,7 @@ describe Chef::Resource::Conditional do describe "after running a failed/false command given as a string" do before do - @status.send("success?=", false) + @status.send(:"success?=", false) @conditional = Chef::Resource::Conditional.not_if(@parent_resource, "false") end @@ -183,7 +183,7 @@ describe Chef::Resource::Conditional do describe "after running a failed/false command given as an array" do before do - @status.send("success?=", false) + @status.send(:"success?=", false) @conditional = Chef::Resource::Conditional.not_if(@parent_resource, ["false"]) end |