spec/spec_helper.rb in fakeredis-0.6.0 vs spec/spec_helper.rb in fakeredis-0.7.0
- old
+ new
@@ -5,11 +5,15 @@
require "fakeredis/rspec"
require "support/shared_examples/sortable"
require "support/shared_examples/bitwise_operation"
+
RSpec.configure do |config|
+ # Enable memory adapter
+ config.before(:each) { FakeRedis.enable }
+
# replaces -b -fdoc --color in .rspec
config.color = true
config.default_formatter = "doc"
config.backtrace_exclusion_patterns = []
@@ -23,7 +27,7 @@
c.syntax = [:should, :expect]
end
end
def fakeredis?
- true
+ FakeRedis.enabled?
end