Sha256: af39e5cdb3c6a230952288aa0517ae2da8696e885f85976760424af17f25ce8e
Contents?: true
Size: 521 Bytes
Versions: 4
Compression:
Stored size: 521 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'ice_nine/freezer' require 'ice_nine/freezer/no_freeze' require 'ice_nine/freezer/nil_class' describe IceNine::Freezer::NilClass, '.deep_freeze' do subject { object.deep_freeze(value) } let(:object) { described_class } context 'with a nil object' do let(:value) { nil } it 'returns the object' do should be(value) end it 'does not freeze the object' do expect { subject }.to_not change(value, :frozen?).from(false) end end end
Version data entries
4 entries across 4 versions & 1 rubygems