spec/spec_helper.rb in mongoid-undo-0.3.0 vs spec/spec_helper.rb in mongoid-undo-0.4.0
- old
+ new
@@ -1,7 +1,11 @@
+$: << File.expand_path('../../lib', __FILE__)
+
require 'minitest/autorun'
require 'minitest/pride'
require 'minitest/spec'
-require './lib/mongoid/undo'
+require 'mongoid/undo'
-Mongoid.load!(File.expand_path('../mongoid.yml', __FILE__), 'test')
+# Load support *.rb files in ./support
+Dir[File.expand_path('../support/*.rb', __FILE__)].each { |file| require_relative file }
+