Sha256: 0fc8a625905e169117514ec384e307b9470f64b2cefc5fdb79341d74ba19a929
Contents?: true
Size: 423 Bytes
Versions: 12
Compression:
Stored size: 423 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'ice_nine' require 'delegate' describe IceNine, '.deep_freeze' do subject { object.deep_freeze(value) } let(:object) { IceNine } context 'with a shallowly frozen value' do let(:value) { ['a', %w[b c]].freeze } it 'does a deep freeze' do expect(subject.select(&:frozen?)).to eql(value) end end it_should_behave_like 'IceNine.deep_freeze' end
Version data entries
12 entries across 10 versions & 4 rubygems