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

Commit 297cd63

Browse files
committed
Fix the Travis build for Mongoid 2.4
1 parent af3170a commit 297cd63

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/support/adapters/mongoid/database_cleaner.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,9 @@
99
DatabaseCleaner.clean
1010
end
1111
end
12+
13+
# TODO: Remove after this pull request is merged and a new version is released:
14+
# https://github.com/DatabaseCleaner/database_cleaner/pull/507
15+
if defined?(::Mongo::VERSION) && ::Mongo::VERSION < "2"
16+
::Mongo.send(:remove_const, :VERSION)
17+
end

0 commit comments

Comments
 (0)