begin require './spec/support/simplecov_helper' include SimpleCovHelper start_simple_cov('unit') rescue LoadError puts "Coverage disabled." end require 'modis' Modis.configure do |config| config.namespace = 'modis' end RSpec.configure do |config| config.after :each do Modis.with_connection do |connection| keys = connection.keys "#{Modis.config.namespace}:*" connection.del(*keys) unless keys.empty? end end end