Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 5ba9f88

Browse files
committed
Fix intermittent MongoMapper test suite failures
1 parent 63ec6e0 commit 5ba9f88

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/support/adapters/mongo_mapper/connection.rb

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# We need to require "active_support" first here because MongoMapper requires
2+
# "active_support/core_ext" without first requiring "active_support". On some
3+
# systems, this causes intermittent test suite failures.
4+
#
5+
# See: https://github.com/rails/rails/issues/14664
6+
# and: https://github.com/mongomapper/mongomapper/commit/64f9fc6
7+
#
8+
require "active_support"
9+
110
require "mongo_mapper"
211

312
MongoMapper.connection = Mongo::Connection.new

0 commit comments

Comments
 (0)