diff options
-rw-r--r-- | lib/chef/resource/file/verification.rb | 2 | ||||
-rw-r--r-- | spec/unit/resource/file/verification_spec.rb | 2 |
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 |