summaryrefslogtreecommitdiff
path: root/spec/unit/node/vivid_mash_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/node/vivid_mash_spec.rb')
-rw-r--r--spec/unit/node/vivid_mash_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/node/vivid_mash_spec.rb b/spec/unit/node/vivid_mash_spec.rb
index 4898c22380..e1021ba0c0 100644
--- a/spec/unit/node/vivid_mash_spec.rb
+++ b/spec/unit/node/vivid_mash_spec.rb
@@ -61,7 +61,7 @@ describe Chef::Node::VividMash do
it "deep converts values through arrays" do
expect(root).to receive(:reset_cache).with("foo")
- vivid["foo"] = [ { :bar => true } ]
+ vivid["foo"] = [ { bar: true } ]
expect(vivid["foo"].class).to eql(Chef::Node::AttrArray)
expect(vivid["foo"][0].class).to eql(Chef::Node::VividMash)
expect(vivid["foo"][0]["bar"]).to be true
@@ -69,7 +69,7 @@ describe Chef::Node::VividMash do
it "deep converts values through nested arrays" do
expect(root).to receive(:reset_cache).with("foo")
- vivid["foo"] = [ [ { :bar => true } ] ]
+ vivid["foo"] = [ [ { bar: true } ] ]
expect(vivid["foo"].class).to eql(Chef::Node::AttrArray)
expect(vivid["foo"][0].class).to eql(Chef::Node::AttrArray)
expect(vivid["foo"][0][0].class).to eql(Chef::Node::VividMash)
@@ -78,7 +78,7 @@ describe Chef::Node::VividMash do
it "deep converts values through hashes" do
expect(root).to receive(:reset_cache).with("foo")
- vivid["foo"] = { baz: { :bar => true } }
+ vivid["foo"] = { baz: { bar: true } }
expect(vivid["foo"]).to be_an_instance_of(Chef::Node::VividMash)
expect(vivid["foo"]["baz"]).to be_an_instance_of(Chef::Node::VividMash)
expect(vivid["foo"]["baz"]["bar"]).to be true