Sha256: 62cfab197432a0e0f12891542574173f769ea395f4b62978f36780651cfb60ac
Contents?: true
Size: 559 Bytes
Versions: 4
Compression:
Stored size: 559 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'ice_nine/freezer' require 'ice_nine/freezer/object' require 'ice_nine/freezer/no_freeze' require 'ice_nine/freezer/true_class' describe IceNine::Freezer::TrueClass, '.deep_freeze' do subject { object.deep_freeze(value) } let(:object) { described_class } context 'with a true object' do let(:value) { true } 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