summaryrefslogtreecommitdiff
path: root/spec/unit/node
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:11:35 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-07-02 11:13:54 -0700
commit77f8739a4741e2370e40ec39345a92a6ea393a1a (patch)
treebcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /spec/unit/node
parent90a74a80196725c4198b6042e8485d68c70777ac (diff)
downloadchef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz
fix Layout/AlignArgumentslcg/new-chefstyle
this is using: Layout/AlignArguments: Enabled: true EnforcedStyle: with_fixed_indentation the default style can use really excessive whitespace. on starting lines which are already long, it fully indents across to where the arguments start and then begins the line there. Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit/node')
-rw-r--r--spec/unit/node/vivid_mash_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/node/vivid_mash_spec.rb b/spec/unit/node/vivid_mash_spec.rb
index cfdc813b50..575d8c3321 100644
--- a/spec/unit/node/vivid_mash_spec.rb
+++ b/spec/unit/node/vivid_mash_spec.rb
@@ -421,8 +421,8 @@ describe Chef::Node::AttrArray do
context "#compact!" do
it "VividMashes remain VividMashes" do
array = Chef::Node::AttrArray.new(
- [ nil, { "one" => "two" }, nil ],
- root
+ [ nil, { "one" => "two" }, nil ],
+ root
)
expect(array[1].class).to eql(Chef::Node::VividMash)
array.compact!
@@ -440,8 +440,8 @@ describe Chef::Node::AttrArray do
context "#flatten!" do
it "flattens sub-arrays maintaining VividMashes in them" do
array = Chef::Node::AttrArray.new(
- [ [ { "one" => "two" } ], [ { "one" => "two" } ] ],
- root
+ [ [ { "one" => "two" } ], [ { "one" => "two" } ] ],
+ root
)
expect(array[0][0].class).to eql(Chef::Node::VividMash)
array.flatten!