mongoid-rspec 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/matchers/associations.rb +6 -6
- data/mongoid-rspec.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.1
|
@@ -88,17 +88,17 @@ module Mongoid
|
|
88
88
|
def type_description(type = nil, passive = true)
|
89
89
|
type ||= @association[:type]
|
90
90
|
case type.name
|
91
|
-
when
|
91
|
+
when EMBEDS_ONE.name
|
92
92
|
(passive ? 'embed' : 'embeds') << ' one'
|
93
|
-
when
|
93
|
+
when EMBEDS_MANY.name
|
94
94
|
(passive ? 'embed' : 'embeds') << ' many'
|
95
|
-
when
|
95
|
+
when EMBEDDED_IN.name
|
96
96
|
(passive ? 'be' : 'is') << ' embedded in'
|
97
|
-
when
|
97
|
+
when HAS_ONE.name
|
98
98
|
(passive ? 'have' : 'has') << ' one related'
|
99
|
-
when
|
99
|
+
when HAS_MANY.name
|
100
100
|
(passive ? 'have' : 'has') << ' many related'
|
101
|
-
when
|
101
|
+
when BELONGS_TO.name
|
102
102
|
(passive ? 'belong' : 'belongs') << ' to related'
|
103
103
|
else
|
104
104
|
raise "Unknown association type"
|
data/mongoid-rspec.gemspec
CHANGED