diff options
author | Tim Smith <tsmith84@gmail.com> | 2021-09-13 16:49:22 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2021-09-13 16:49:22 -0700 |
commit | 289ec8bc61cc91841f1dcac1eed0a2c436992ff5 (patch) | |
tree | f2223bb875483435f2ccbf22f5c34d3c403b91de /spec | |
parent | bee6130ca1398b02b18198578cc9de28cf46483d (diff) | |
download | chef-289ec8bc61cc91841f1dcac1eed0a2c436992ff5.tar.gz |
Resolve chefstyle warnings
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/resource/file/verification/yaml_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/resource/file/verification/yaml_spec.rb b/spec/unit/resource/file/verification/yaml_spec.rb index c7fdf42faf..390e52e316 100644 --- a/spec/unit/resource/file/verification/yaml_spec.rb +++ b/spec/unit/resource/file/verification/yaml_spec.rb @@ -28,7 +28,7 @@ describe Chef::Resource::File::Verification::Yaml do svc: mysqlPassword: sepppasswd ") - f.close() + f.close @invalid_yaml = "invalid-#{Time.now.to_i}.yaml" f = File.new(@invalid_yaml, "w") @@ -36,10 +36,10 @@ describe Chef::Resource::File::Verification::Yaml do svc: mysqlPassword: 'sepppasswd ") - f.close() + f.close @empty_yaml = "empty-#{Time.now.to_i}.yaml" - File.new(@empty_yaml, "w").close() + File.new(@empty_yaml, "w").close end context "verify" do |