Sha256: 968ff26b1b68fa360949069e36a570752ea0aa3acf3704c13b7caaa479414a5a

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

# encoding: utf-8

require 'spec_helper'
require 'ice_nine/freezer'
require 'ice_nine/freezer/no_freeze'
require 'ice_nine/freezer/symbol'

describe IceNine::Freezer::Symbol, '.deep_freeze' do
  subject { object.deep_freeze(value) }

  let(:object) { described_class }

  context 'with a Symbol object' do
    let(:value) { :symbol }

    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

Version Path
ice_nine-0.10.0 spec/unit/ice_nine/freezer/symbol/class_methods/deep_freeze_spec.rb
ice_nine-0.9.0 spec/unit/ice_nine/freezer/symbol/class_methods/deep_freeze_spec.rb
ice_nine-0.8.0 spec/unit/ice_nine/freezer/symbol/class_methods/deep_freeze_spec.rb
ice_nine-0.7.0 spec/unit/ice_nine/freezer/symbol/class_methods/deep_freeze_spec.rb