summaryrefslogtreecommitdiff
path: root/spec/unit/property_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-05 13:26:53 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-05 13:26:53 -0700
commit3b10f9ca503dcbce747241281b9151d3d010f9ef (patch)
tree2e90f78a6910a4c673e19045a7f0627f1fc49382 /spec/unit/property_spec.rb
parent2a4916b7f01940d1199c35645c1b2172f5bd74b2 (diff)
downloadchef-3b10f9ca503dcbce747241281b9151d3d010f9ef.tar.gz
Style/SymbolProc
enforce pretzels. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/property_spec.rb')
-rw-r--r--spec/unit/property_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb
index 50e15f4505..1fcbb77e8e 100644
--- a/spec/unit/property_spec.rb
+++ b/spec/unit/property_spec.rb
@@ -52,7 +52,7 @@ describe "Chef::Resource.property" do
return "<nothing>" if values.size == 0
return values[0].inspect if values.size == 1
- "#{values[0..-2].map { |v| v.inspect }.join(", ")} and #{values[-1].inspect}"
+ "#{values[0..-2].map(&:inspect).join(", ")} and #{values[-1].inspect}"
end
def self.with_property(*properties, &block)