summaryrefslogtreecommitdiff
path: root/spec/unit/resource/mount_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/resource/mount_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/resource/mount_spec.rb')
-rw-r--r--spec/unit/resource/mount_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/resource/mount_spec.rb b/spec/unit/resource/mount_spec.rb
index ea20511990..8741ac3e75 100644
--- a/spec/unit/resource/mount_spec.rb
+++ b/spec/unit/resource/mount_spec.rb
@@ -87,19 +87,19 @@ describe Chef::Resource::Mount do
end
it "should allow options attribute as an array" do
- @resource.options ["ro", "nosuid"]
+ @resource.options %w(ro nosuid)
expect(@resource.options).to be_a_kind_of(Array)
end
it "should allow options to be sent as a delayed evaluator" do
- @resource.options Chef::DelayedEvaluator.new { ["rw", "noexec"] }
- expect(@resource.options).to eql(["rw", "noexec"])
+ @resource.options Chef::DelayedEvaluator.new { %w(rw noexec) }
+ expect(@resource.options).to eql(%w(rw noexec))
end
it "should allow options to be sent as a delayed evaluator, and convert to array" do
@resource.options Chef::DelayedEvaluator.new { "rw,noexec" }
expect(@resource.options).to be_a_kind_of(Array)
- expect(@resource.options).to eql(["rw", "noexec"])
+ expect(@resource.options).to eql(%w(rw noexec))
end
it "should accept true for mounted" do