mongo_mapper 0.8.1 → 0.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
|
|