summaryrefslogtreecommitdiff
path: root/spec/unit/lwrp_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-12-26 20:32:49 -0800
committerTim Smith <tsmith84@gmail.com>2021-12-26 20:32:49 -0800
commit0cefcaa319b0d2f07241b78bf7d6f06de03d07ef (patch)
tree5c1061b328d1769e8ad1c995db78a5521736c33e /spec/unit/lwrp_spec.rb
parent50a0001bae754c66feb69c84b64cb305a03a34d2 (diff)
downloadchef-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/lwrp_spec.rb')
-rw-r--r--spec/unit/lwrp_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/lwrp_spec.rb b/spec/unit/lwrp_spec.rb
index 5767e3987b..e93640ab86 100644
--- a/spec/unit/lwrp_spec.rb
+++ b/spec/unit/lwrp_spec.rb
@@ -54,7 +54,7 @@ describe "LWRP" do
end
it "should not skip loading a resource when there's a top level symbol of the same name" do
- Object.const_set("LwrpFoo", Class.new)
+ Object.const_set(:LwrpFoo, Class.new)
file = File.expand_path( "lwrp/resources/foo.rb", CHEF_SPEC_DATA)
expect(Chef::Log).not_to receive(:info).with(/Skipping/)
expect(Chef::Log).not_to receive(:trace).with(/anymore/)
@@ -63,7 +63,7 @@ describe "LWRP" do
end
it "should not skip loading a provider when there's a top level symbol of the same name" do
- Object.const_set("LwrpBuckPasser", Class.new)
+ Object.const_set(:LwrpBuckPasser, Class.new)
file = File.expand_path( "lwrp/providers/buck_passer.rb", CHEF_SPEC_DATA)
expect(Chef::Log).not_to receive(:info).with(/Skipping/)
expect(Chef::Log).not_to receive(:trace).with(/anymore/)