diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-11-15 15:04:53 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-12-06 13:08:26 -0800 |
commit | 2e92c709459dffef54f9d671e10ec9a949a94962 (patch) | |
tree | 7b24e597c763df50cf4459e7bfa9f8bb1a5014d9 /spec/unit/decorator | |
parent | db85ca494a484024404f1090c493613cc9521662 (diff) | |
download | chef-2e92c709459dffef54f9d671e10ec9a949a94962.tar.gz |
fix Style/SelfAssignment
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/decorator')
-rw-r--r-- | spec/unit/decorator/lazy_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/decorator/lazy_spec.rb b/spec/unit/decorator/lazy_spec.rb index 4ea8301b63..46c8955ae8 100644 --- a/spec/unit/decorator/lazy_spec.rb +++ b/spec/unit/decorator/lazy_spec.rb @@ -21,7 +21,7 @@ require "spec_helper" describe Chef::Decorator::Lazy do let(:decorator) do @a = 0 - Chef::Decorator::Lazy.new { @a = @a + 1 } + Chef::Decorator::Lazy.new { @a += 1 } end it "decorates an object" do |