Sha256: 04480b4e23c53b1733f4b28f404cba26a97cc4601d35822af60ad51f2c04ab1b

Contents?: true

Size: 644 Bytes

Versions: 6

Compression:

Stored size: 644 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 }

  before 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

6 entries across 6 versions & 1 rubygems

Version Path
asynchronic-0.3.1 spec/data_store/redis_spec.rb
asynchronic-0.3.0 spec/data_store/redis_spec.rb
asynchronic-0.2.3 spec/data_store/redis_spec.rb
asynchronic-0.2.2 spec/data_store/redis_spec.rb
asynchronic-0.2.1 spec/data_store/redis_spec.rb
asynchronic-0.2.0 spec/data_store/redis_spec.rb