spec/spec_helper.rb in mongo-lock-1.1.4 vs spec/spec_helper.rb in mongo-lock-1.2.0
- old
+ new
@@ -1,10 +1,11 @@
require 'coveralls'
Coveralls.wear!
require 'rails'
require 'mongo-lock'
require 'mongo'
+require 'moped'
require 'active_support/core_ext/numeric/time'
RSpec.configure do |config|
config.treat_symbols_as_metadata_keys_with_true_values = true
@@ -16,20 +17,14 @@
config.color = true
config.formatter = "Fuubar"
config.filter_run_excluding :wip => true
Dir[File.expand_path("../support/**/*.rb", __FILE__)].each {|f| require f }
+ Dir[File.expand_path("../examples/**/*.rb", __FILE__)].each {|f| require f }
require 'pry'
include MongoHelper
-
- config.before :each do
- database.drop_collection("locks")
- database.drop_collection("other_locks")
- database.drop_collection("another_locks")
- Mongo::Lock.configure collection: my_collection
- end
config.after :each do
end
config.after :suite do