Module: RubyReactor::RSpec::StorageReset

Defined in:
lib/ruby_reactor/rspec/storage_reset.rb

Overview

Test-only ‘reset!` impls layered onto storage adapters at framework load time. Kept out of `lib/ruby_reactor/storage/*` so production code never gains a “wipe everything” entry point.

Defined Under Namespace

Modules: RedisAdapterReset

Class Method Summary collapse

Class Method Details

.install!Object



15
16
17
18
19
20
# File 'lib/ruby_reactor/rspec/storage_reset.rb', line 15

def self.install!
  return if @installed

  ::RubyReactor::Storage::RedisAdapter.prepend(RedisAdapterReset)
  @installed = true
end