summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2017-12-18 19:29:50 +0000
committerThom May <thom@chef.io>2017-12-18 19:29:50 +0000
commitb4690c58ae034207ddcbb8625e066f5327930f97 (patch)
tree2f356db7080df9671a8f844867d6cc5205b6a789
parent3b97e4a703356394a799677723a27432103ee611 (diff)
downloadchef-b4690c58ae034207ddcbb8625e066f5327930f97.tar.gz
feed chefstyletm+nk/verify-command
Signed-off-by: Thom May <thom@chef.io>
-rw-r--r--lib/chef/resource/file/verification.rb2
-rw-r--r--spec/unit/resource/file/verification_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/file/verification.rb b/lib/chef/resource/file/verification.rb
index cfbdfd5263..ed6fce2e5c 100644
--- a/lib/chef/resource/file/verification.rb
+++ b/lib/chef/resource/file/verification.rb
@@ -122,7 +122,7 @@ class Chef
def to_s
if @block
- '<Proc>'
+ "<Proc>"
elsif @command.is_a?(Symbol)
"#{@command.inspect} (#{Chef::Resource::File::Verification.lookup(@command).name})"
elsif @command.is_a?(String)
diff --git a/spec/unit/resource/file/verification_spec.rb b/spec/unit/resource/file/verification_spec.rb
index 8e850395d8..e46040268a 100644
--- a/spec/unit/resource/file/verification_spec.rb
+++ b/spec/unit/resource/file/verification_spec.rb
@@ -68,7 +68,7 @@ describe Chef::Resource::File::Verification do
end
it "responds to to_s" do
- v = Chef::Resource::File::Verification.new(parent_resource, nil, {}) { }
+ v = Chef::Resource::File::Verification.new(parent_resource, nil, {}) {}
expect(v.to_s).to eq("<Proc>")
end
end