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-1.1.0 spec/data_store/redis_spec.rb
asynchronic-1.0.0 spec/data_store/redis_spec.rb