Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Fix intermittent MongoMapper test suite failures
Browse files Browse the repository at this point in the history
  • Loading branch information
laserlemon committed Jun 24, 2014
1 parent 63ec6e0 commit 5ba9f88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/support/adapters/mongo_mapper/connection.rb
@@ -1,3 +1,12 @@
# We need to require "active_support" first here because MongoMapper requires
# "active_support/core_ext" without first requiring "active_support". On some
# systems, this causes intermittent test suite failures.
#
# See: https://github.com/rails/rails/issues/14664
# and: https://github.com/mongomapper/mongomapper/commit/64f9fc6
#
require "active_support"

require "mongo_mapper"

MongoMapper.connection = Mongo::Connection.new
Expand Down

0 comments on commit 5ba9f88

Please sign in to comment.