Sha256: b3dd3ead43a07e80446f1ea7b84450548ed28c90f1f35b78fca06d6c06e6c85d

Contents?: true

Size: 418 Bytes

Versions: 12

Compression:

Stored size: 418 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) { %w[a b].freeze }

    it 'does not deep freeze' do
      expect(subject.select(&:frozen?)).to be_empty
    end
  end

  it_should_behave_like 'IceNine.deep_freeze'
end

Version data entries

12 entries across 10 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/ice_nine-0.11.2/spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
ice_nine-0.11.2 spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
ice_nine-0.11.1 spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb
ice_nine-0.11.0 spec/integration/ice_nine/class_methods/deep_freeze_bang_spec.rb