diff options
author | Noah Kantrowitz <noah@coderanger.net> | 2017-04-04 10:44:52 -0700 |
---|---|---|
committer | Noah Kantrowitz <noah@coderanger.net> | 2017-04-04 10:44:52 -0700 |
commit | 848404e77096c19ba8689927330c61e12cbd10fb (patch) | |
tree | a022eb7d96362c55500938b2570a21c725fd843f | |
parent | 3d602434f783356237173135e4ccbbd8c618002b (diff) | |
download | chef-848404e77096c19ba8689927330c61e12cbd10fb.tar.gz |
Rubocoppppp.
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r-- | lib/chef/property.rb | 4 | ||||
-rw-r--r-- | spec/unit/property_spec.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/chef/property.rb b/lib/chef/property.rb index 3c3fd44d24..a72e41a61e 100644 --- a/lib/chef/property.rb +++ b/lib/chef/property.rb @@ -115,9 +115,9 @@ class Chef visitor = lambda do |obj| case obj when Hash - obj.each_value {|value| visitor.call(value) } + obj.each_value { |value| visitor.call(value) } when Array - obj.each {|value| visitor.call(value) } + obj.each { |value| visitor.call(value) } end obj.freeze end diff --git a/spec/unit/property_spec.rb b/spec/unit/property_spec.rb index 31408e8209..b8cf7f5d1b 100644 --- a/spec/unit/property_spec.rb +++ b/spec/unit/property_spec.rb @@ -578,7 +578,7 @@ describe "Chef::Resource.property" do context "complex, nested default" do with_property ":x, default: [{foo: 'bar'}]" do it "when x is not set, it returns [{foo: 'bar'}]" do - expect(resource.x).to eq([{foo: 'bar'}]) + expect(resource.x).to eq([{ foo: "bar" }]) end it "x is immutable" do expect { resource.x << :other }.to raise_error(RuntimeError, "can't modify frozen Array") |