Sha256: 1b50bb57e50c21abf82490455737f2b3ade85be9ea67f902165018532fec6656

Contents?: true

Size: 400 Bytes

Versions: 2

Compression:

Stored size: 400 Bytes

Contents

require 'rspec'

$LOAD_PATH.unshift(File.join(__dir__, '..', 'lib'))
$LOAD_PATH.unshift(File.join(__dir__, '..'))
Dir['spec/support/**/*.rb'].each { |f| require f }

require 'fakeredis'
require "fakeredis/rspec"

RSpec.configure do |config|
  # Enable memory adapter
  config.before(:each) { FakeRedis.enable }

  config.backtrace_exclusion_patterns = []
end

def fakeredis?
  FakeRedis.enabled?
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fakeredis-0.9.0 spec/spec_helper.rb
fakeredis-0.8.0 spec/spec_helper.rb