spec/unit/mongoid/attributes_spec.rb in mongoid-0.10.6 vs spec/unit/mongoid/attributes_spec.rb in mongoid-0.11.0

- old
+ new

@@ -307,11 +307,11 @@ end it "sets the child attributes on the parent" do @name.write_attributes(:first_name => "Test2", :last_name => "User2") @person.attributes[:name].should == - { "_id" => "test-user", "first_name" => "Test2", "last_name" => "User2" } + { "_id" => "test-user", "first_name" => "Test2", "last_name" => "User2", "_type" => "Name" } end end context "when child is part of a has many" do @@ -323,10 +323,10 @@ end it "updates the child attributes on the parent" do @address.write_attributes("street" => "Test2") @person.attributes[:addresses].should == - [ { "_id" => "test", "street" => "Test2" } ] + [ { "_id" => "test", "street" => "Test2", "_type" => "Address" } ] end end end