diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-09 07:53:56 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-02-09 07:53:56 -0800 |
commit | f073747786abbe6ada55ed24b696a03e39c3c45d (patch) | |
tree | 7971d871e89d522a58291713761a6c83f68e8d19 /spec/unit/role_spec.rb | |
parent | c6e69783705cfd48bfea0c943dc071964dd21311 (diff) | |
download | chef-f073747786abbe6ada55ed24b696a03e39c3c45d.tar.gz |
auto fixing some rubocops
Style/NegatedWhile
Style/ParenthesesAroundCondition
Style/WhileUntilDo
Style/WordArray
Performance/ReverseEach
Style/ColonMethodCall
Diffstat (limited to 'spec/unit/role_spec.rb')
-rw-r--r-- | spec/unit/role_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/role_spec.rb b/spec/unit/role_spec.rb index 1ff76d7207..a7b329c3d6 100644 --- a/spec/unit/role_spec.rb +++ b/spec/unit/role_spec.rb @@ -85,12 +85,12 @@ describe Chef::Role do describe "using the old #recipes API" do it "should let you set the recipe array" do - expect(@role.recipes([ "one", "two" ])).to eq([ "one", "two" ]) + expect(@role.recipes(%w(one two))).to eq(%w(one two)) end it "should let you return the recipe array" do - @role.recipes([ "one", "two" ]) - expect(@role.recipes).to eq([ "one", "two" ]) + @role.recipes(%w(one two)) + expect(@role.recipes).to eq(%w(one two)) end it "should not list roles in the recipe array" do |