Sha256: acf00d0d79a28f9179f3eacede9cd43f879e55b78b179f13875a2486d481e200

Contents?: true

Size: 540 Bytes

Versions: 4

Compression:

Stored size: 540 Bytes

Contents

require 'minitest_helper'

describe Asynchronic::DataStore::Redis do

  let(:data_store) { Asynchronic::DataStore::Redis.new :asynchronic_test }

  include DataStoreExamples

  describe 'LazyValue' do
    include LazyValueExamples
  end

  it 'Safe deserialization' do
    SampleClass = Class.new

    data_store[:class] =  SampleClass
    data_store[:instance] =  SampleClass.new

    Object.send :remove_const, :SampleClass

    data_store[:class].must_be_instance_of String
    data_store[:instance].must_be_instance_of String
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
asynchronic-4.0.3 spec/data_store/redis_spec.rb
asynchronic-4.0.2 spec/data_store/redis_spec.rb
asynchronic-4.0.1 spec/data_store/redis_spec.rb
asynchronic-4.0.0 spec/data_store/redis_spec.rb