summaryrefslogtreecommitdiff
path: root/spec/unit/node/immutable_collections_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/node/immutable_collections_spec.rb')
-rw-r--r--spec/unit/node/immutable_collections_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/node/immutable_collections_spec.rb b/spec/unit/node/immutable_collections_spec.rb
index fe4e50d1bd..81dd771df3 100644
--- a/spec/unit/node/immutable_collections_spec.rb
+++ b/spec/unit/node/immutable_collections_spec.rb
@@ -198,4 +198,9 @@ describe Chef::Node::ImmutableArray do
end
end
+ describe "#[]" do
+ it "works with array slices" do
+ expect(@immutable_array[1, 2]).to eql(%w{bar baz})
+ end
+ end
end