Sha256: 91c6637b7974e53ab1f7a1eb425194f32bf00ea64f7176eaa2048d910bb80359

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

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

4 entries across 4 versions & 1 rubygems

Version Path
adamantium-0.0.6 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb
adamantium-0.0.5 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb
adamantium-0.0.4 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb
adamantium-0.0.3 spec/unit/adamantium/freezer/deep/class_methods/freeze_spec.rb