mongoid_feature_flags 0.1.20 → 0.1.21
Sign up to get free protection for your applications and to get access to all the features.
- data/spec/spec_helper.rb +6 -1
- metadata +1 -1
data/spec/spec_helper.rb
CHANGED
@@ -7,4 +7,9 @@ require_relative "./models/family"
|
|
7
7
|
require_relative "./models/person"
|
8
8
|
require_relative "./models/possession"
|
9
9
|
|
10
|
-
Mongoid
|
10
|
+
if Mongoid::VERSION =~ /^3/
|
11
|
+
Mongoid::Config.connect_to("test")
|
12
|
+
else
|
13
|
+
Mongoid.database = Mongo::Connection.from_uri("mongodb://localhost:27017/test").db("test")
|
14
|
+
end
|
15
|
+
|