spec/data_store/redis_spec.rb in asynchronic-3.0.3 vs spec/data_store/redis_spec.rb in asynchronic-4.0.0
- old
+ new
@@ -1,31 +1,25 @@
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
+ 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
-
- describe 'LazyValue' do
- include LazyValueExamples
end
end
\ No newline at end of file