Sha256: b194873873dc8a9aacf5aeba6aeeaedca2791ec638a73bf5a8c1d85e1ee6bce5

Contents?: true

Size: 333 Bytes

Versions: 5

Compression:

Stored size: 333 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Adamantium::Freezer::Deep, '.freeze' do
  subject { object.freeze(value) }

  let(:object) { described_class }

  let(:value) { mock('Value') }

  it 'should deep freeze value' do
    IceNine.should_receive(:deep_freeze).with(value).and_return(value)
    should be(value)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adamantium-0.0.11 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb
adamantium-0.0.10 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb
adamantium-0.0.9 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb
adamantium-0.0.8 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb
adamantium-0.0.7 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb