From 4978a9a8a402477f3b35f43404701d6a5cf26fa1 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Wed, 3 Jul 2019 12:26:05 -0700 Subject: Style/EmptyLiteral Signed-off-by: Lamont Granquist --- spec/support/shared/unit/platform_introspector.rb | 2 +- spec/support/shared/unit/windows_script_resource.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/support/shared/unit') diff --git a/spec/support/shared/unit/platform_introspector.rb b/spec/support/shared/unit/platform_introspector.rb index 0354c3a33c..3b07fdd367 100644 --- a/spec/support/shared/unit/platform_introspector.rb +++ b/spec/support/shared/unit/platform_introspector.rb @@ -43,7 +43,7 @@ shared_examples_for "a platform introspector" do end it "returns a default value when there is no known platform" do - node = Hash.new + node = {} expect(platform_introspector.value_for_platform(@platform_hash)).to eq("default") end diff --git a/spec/support/shared/unit/windows_script_resource.rb b/spec/support/shared/unit/windows_script_resource.rb index 5b559bb83b..29238a3917 100644 --- a/spec/support/shared/unit/windows_script_resource.rb +++ b/spec/support/shared/unit/windows_script_resource.rb @@ -25,7 +25,7 @@ shared_examples_for "a Windows script resource" do before(:each) do node = Chef::Node.new - node.default["kernel"] = Hash.new + node.default["kernel"] = {} node.default["kernel"][:machine] = :x86_64.to_s run_context = Chef::RunContext.new(node, nil, nil) -- cgit v1.2.1