spec/spec_helper.rb in easy_redis-0.1.0 vs spec/spec_helper.rb in easy_redis-1.0.0

- old
+ new

@@ -1,3 +1,14 @@ require 'easy_redis' require 'pry' -require 'redis' \ No newline at end of file +require 'redis' +Dir["#{File.dirname(__FILE__)}/support/*.rb"].each {|f| require f } + +RSpec.configure do |config| + + EasyRedis::Redis.configure(redis: Redis.new) + + config.after(:each) do + EasyRedis::Redis.redis.flushdb + end + +end