spec/spec_helper.rb in bastet-0.0.2 vs spec/spec_helper.rb in bastet-0.1.0
- old
+ new
@@ -7,6 +7,14 @@
Bundler.setup
RSpec.configure do |config|
config.mock_with :mocha
+
+ config.before(:each) do
+ @redis = Redis.new
+ end
+
+ config.after(:each) do
+ @redis.flushdb
+ end
end