mongo_mapper 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
data/lib/mongo_mapper/version.rb
CHANGED
@@ -45,6 +45,15 @@ class OneEmbeddedProxyTest < Test::Unit::TestCase
|
|
45
45
|
post.author.should == new_author
|
46
46
|
end
|
47
47
|
|
48
|
+
should "not have problem loading root document if embedded one is nil" do
|
49
|
+
@post_class.one :author, :class => @author_class
|
50
|
+
post = @post_class.create
|
51
|
+
|
52
|
+
lambda {
|
53
|
+
@post_class.find(post.id)
|
54
|
+
}.should_not raise_error
|
55
|
+
end
|
56
|
+
|
48
57
|
should "have boolean method for testing presence" do
|
49
58
|
@post_class.one :author, :class => @author_class
|
50
59
|
|