lib/fakeredis/rspec.rb in fakeredis-0.4.1 vs lib/fakeredis/rspec.rb in fakeredis-0.4.2
- old
+ new
@@ -15,9 +15,9 @@
require 'fakeredis'
RSpec.configure do |c|
c.before do
- Redis::Connection::Memory.instances.values.each &:flushdb
+ Redis::Connection::Memory.reset_all_databases
end
end