Sha256: ed6fe58bbaa664acd9eaca31c4a0a9615604869da05ff9c47bb0644e734e9bf6

Contents?: true

Size: 650 Bytes

Versions: 2

Compression:

Stored size: 650 Bytes

Contents

# frozen_string_literal: true

unless ENV['CI']
  begin
    require './spec/support/simplecov_helper'
    include SimpleCovHelper # rubocop:disable Style/MixinUsage
    start_simple_cov('unit')
  rescue LoadError
    puts "Coverage disabled."
  end
end

require 'modis'

Redis.raise_deprecations = true if Gem.loaded_specs['redis'].version >= Gem::Version.new('4.6.0')

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
modis-4.2.0 spec/spec_helper.rb
modis-4.1.0 spec/spec_helper.rb