Sha256: 46de5a89525282feecdbca1b6a7080bb5a12c217944aa4e32adb21010802a96e

Contents?: true

Size: 661 Bytes

Versions: 22

Compression:

Stored size: 661 Bytes

Contents

require 'minitest_helper'
require_relative './data_store_examples'
require_relative './lazy_value_examples'

describe Asynchronic::DataStore::Redis do

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

  after do
    data_store.clear
  end

  include DataStoreExamples

  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

  describe 'LazyValue' do
    include LazyValueExamples
  end

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
asynchronic-3.0.3 spec/data_store/redis_spec.rb
asynchronic-3.0.2 spec/data_store/redis_spec.rb
asynchronic-3.0.1 spec/data_store/redis_spec.rb
asynchronic-3.0.0 spec/data_store/redis_spec.rb
asynchronic-2.0.1 spec/data_store/redis_spec.rb
asynchronic-2.0.0 spec/data_store/redis_spec.rb
asynchronic-1.6.3 spec/data_store/redis_spec.rb
asynchronic-1.6.2 spec/data_store/redis_spec.rb
asynchronic-1.6.1 spec/data_store/redis_spec.rb
asynchronic-1.6.0 spec/data_store/redis_spec.rb
asynchronic-1.5.2 spec/data_store/redis_spec.rb
asynchronic-1.5.1 spec/data_store/redis_spec.rb
asynchronic-1.5.0 spec/data_store/redis_spec.rb
asynchronic-1.4.0 spec/data_store/redis_spec.rb
asynchronic-1.3.1 spec/data_store/redis_spec.rb
asynchronic-1.3.0 spec/data_store/redis_spec.rb
asynchronic-1.2.2 spec/data_store/redis_spec.rb
asynchronic-1.2.1 spec/data_store/redis_spec.rb
asynchronic-1.2.0 spec/data_store/redis_spec.rb
asynchronic-1.1.1 spec/data_store/redis_spec.rb