spec/spec_helper.rb in locomotive_plugins-1.0.0.beta10 vs spec/spec_helper.rb in locomotive_plugins-1.0.1
- old
+ new
@@ -11,12 +11,11 @@
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require 'locomotive_plugins'
# Set up mongoid
-Mongoid.configure do |config|
- config.master = Mongo::Connection.new.db('locomotive_plugins_test')
-end
+ENV["MONGOID_ENV"] = "test"
+Mongoid.load!('spec/support/mongoid.yml')
# Requires supporting ruby files with custom matchers and macros, etc,
# in spec/support/ and its subdirectories.
Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f}