Sha256: be56ed20d6b64e743553430c8984ea485da9896aaad18d8c927757d15613bb11
Contents?: true
Size: 688 Bytes
Versions: 4
Compression:
Stored size: 688 Bytes
Contents
require File.expand_path('../../../../spec_helper', File.dirname(__FILE__)) require "tengine/support/core_ext/enumerable/deep_freeze" describe Enumerable do describe "#deep_freeze" do subject { { "q" => { "w" => { "e" => { "r" => { "t" => { "y" => "u" } } } } } }.deep_freeze } it "recursive destructive freezing of the subject" do subject["q"].frozen?.should be_true subject["q"]["w"].frozen?.should be_true subject["q"]["w"]["e"].frozen?.should be_true subject["q"]["w"]["e"]["r"].frozen?.should be_true subject["q"]["w"]["e"]["r"]["t"].frozen?.should be_true subject["q"]["w"]["e"]["r"]["t"]["y"].frozen?.should be_true end end end
Version data entries
4 entries across 4 versions & 1 rubygems