Sha256: 5315ba9f09fff24e0c450102fbf84fce73e52d46e7ec3044918467cda081fd20
Contents?: true
Size: 505 Bytes
Versions: 12
Compression:
Stored size: 505 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'ice_nine' describe IceNine, '.deep_freeze!' do subject { object.deep_freeze!(value) } let(:object) { IceNine } let(:value) { Object.new } context 'when the object is not frozen' do it_behaves_like 'IceNine::Freezer::Object.deep_freeze' end context 'when the object is frozen' do before do value.instance_eval { @a = '1' } value.freeze end it_behaves_like 'IceNine::Freezer::NoFreeze.deep_freeze' end end
Version data entries
12 entries across 10 versions & 4 rubygems