summaryrefslogtreecommitdiff
path: root/spec/unit/resource/mdadm_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/mdadm_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/mdadm_spec.rb')
-rw-r--r--spec/unit/resource/mdadm_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/resource/mdadm_spec.rb b/spec/unit/resource/mdadm_spec.rb
index 6a446a2815..b6f9c191b7 100644
--- a/spec/unit/resource/mdadm_spec.rb
+++ b/spec/unit/resource/mdadm_spec.rb
@@ -82,14 +82,14 @@ describe Chef::Resource::Mdadm do
describe "when it has devices, level, and chunk" do
before do
@resource.raid_device("raider")
- @resource.devices(["device1", "device2"])
+ @resource.devices(%w(device1 device2))
@resource.level(1)
@resource.chunk(42)
end
it "describes its state" do
state = @resource.state
- expect(state[:devices]).to eql(["device1", "device2"])
+ expect(state[:devices]).to eql(%w(device1 device2))
expect(state[:level]).to eq(1)
expect(state[:chunk]).to eq(42)
end