summaryrefslogtreecommitdiff
path: root/spec/unit/property/validation_spec.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-09 07:53:56 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-09 07:53:56 -0800
commitf073747786abbe6ada55ed24b696a03e39c3c45d (patch)
tree7971d871e89d522a58291713761a6c83f68e8d19 /spec/unit/property/validation_spec.rb
parentc6e69783705cfd48bfea0c943dc071964dd21311 (diff)
downloadchef-f073747786abbe6ada55ed24b696a03e39c3c45d.tar.gz
auto fixing some rubocops
Style/NegatedWhile Style/ParenthesesAroundCondition Style/WhileUntilDo Style/WordArray Performance/ReverseEach Style/ColonMethodCall
Diffstat (limited to 'spec/unit/property/validation_spec.rb')
-rw-r--r--spec/unit/property/validation_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/property/validation_spec.rb b/spec/unit/property/validation_spec.rb
index 0b2a8e0bc9..ffa6a06796 100644
--- a/spec/unit/property/validation_spec.rb
+++ b/spec/unit/property/validation_spec.rb
@@ -292,7 +292,7 @@ describe "Chef::Resource.property validation" do
# Regex
validation_test "is: /abc/",
- [ "abc", "wowabcwow" ],
+ %w(abc wowabcwow),
[ "", "abac" ]
# Property
@@ -427,17 +427,17 @@ describe "Chef::Resource.property validation" do
:nil_is_valid
validation_test "regex: [ /abc/, /z/ ]",
- [ "xabcy", "aza" ],
+ %w(xabcy aza),
[ "gbh", 123 ],
:nil_is_valid
validation_test "regex: [ /z/, /abc/ ]",
- [ "xabcy", "aza" ],
+ %w(xabcy aza),
[ "gbh", 123 ],
:nil_is_valid
validation_test "regex: [ [ /z/, /abc/ ], [ /n/ ] ]",
- [ "xabcy", "aza", "ana" ],
+ %w(xabcy aza ana),
[ "gbh", 123 ],
:nil_is_valid