spec/spec_helper.rb in mongoid_userstamp-0.3.2 vs spec/spec_helper.rb in mongoid_userstamp-0.4.0

- old
+ new

@@ -1,21 +1,20 @@ # -*- encoding : utf-8 -*- require 'rubygems' +require 'ostruct' $:.push File.expand_path('../../lib', __FILE__) require 'active_support/all' require 'mongoid' require 'mongoid_userstamp' -Mongoid.configure do |config| - config.connect_to( - 'mongoid_userstamp_test' - ) +%w(admin user book post).each do |file_name| + require "support/#{file_name}" end -Dir[File.expand_path('../support/**/*.rb', __FILE__)].each do |f| - require f +Mongoid.configure do |config| + config.connect_to 'mongoid_userstamp_test' end RSpec.configure do |config| config.mock_with :rspec