Sha256: 772c288728fa626970aa6f09a705e2db49f82f61e806ef2d0216c720252542eb
Contents?: true
Size: 508 Bytes
Versions: 2
Compression:
Stored size: 508 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 } # Set the default behavior for sadd in v5.0 config.before(:all) { Redis.sadd_returns_boolean = false } 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.2 | spec/spec_helper.rb |
fakeredis-0.9.1 | spec/spec_helper.rb |