Created
September 25, 2010 13:32
-
-
Save hubertlepicki/596839 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) Mongoid::Attributes .accepts_nested_attributes_for #association_attributes= on a embeds many association when :allow_destroy is enabled removes the items that have _destroy => true set | |
Failure/Error: @person.favorites_attributes = @attributes | |
undefined method `favorites_attributes=' for #<Person:0x7f10ebc3d860> | |
# ./spec/../lib/mongoid/attributes.rb:23:in `method_missing' | |
# ./spec/unit/mongoid/attributes_spec.rb:133 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
2) Mongoid::Collections .index_information returns index information from the collection | |
Failure/Error: Person.index_information["title_1"].should_not be_nil | |
expected not nil, got nil | |
# ./spec/unit/mongoid/collections_spec.rb:42 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
3) Mongoid::Relations::Referenced::One #= when the parent is a new record sets the foreign key on the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003a1", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003a1') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003a1 | |
+BSON::ObjectId('4c9df9516e152b0ec70003a1') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:31 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
4) Mongoid::Relations::Referenced::One #= when the parent is not a new record sets the foreign key of the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003a9", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003a9') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003a9 | |
+BSON::ObjectId('4c9df9516e152b0ec70003a9') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:62 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
5) Mongoid::Relations::Referenced::One #build_#{name} sets the foreign key on the document | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003bf", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003bf') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003bf | |
+BSON::ObjectId('4c9df9516e152b0ec70003bf') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:153 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
6) Mongoid::Relations::Referenced::One #create_#{name} sets the foreign key on the document | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003c7", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003c7') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003c7 | |
+BSON::ObjectId('4c9df9516e152b0ec70003c7') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:180 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
7) Mongoid::Relations::Referenced::In #= when the child is a new record sets the foreign key on the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003d0", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003d0') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003d0 | |
+BSON::ObjectId('4c9df9516e152b0ec70003d0') | |
# ./spec/integration/mongoid/relations/referenced/in_spec.rb:31 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
8) Mongoid::Relations::Referenced::In #= when the child is not a new record sets the foreign key of the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003d8", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003d8') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003d8 | |
+BSON::ObjectId('4c9df9516e152b0ec70003d8') | |
# ./spec/integration/mongoid/relations/referenced/in_spec.rb:62 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
9) Mongoid::Relations::Referenced::Many #<< when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003e9", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003e9') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003e9 | |
+BSON::ObjectId('4c9df9516e152b0ec70003e9') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:29 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
10) Mongoid::Relations::Referenced::Many #<< when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9516e152b0ec70003f1", | |
got: BSON::ObjectId('4c9df9516e152b0ec70003f1') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9516e152b0ec70003f1 | |
+BSON::ObjectId('4c9df9516e152b0ec70003f1') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:60 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
11) Mongoid::Relations::Referenced::Many #push when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec70003fd", | |
got: BSON::ObjectId('4c9df9526e152b0ec70003fd') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec70003fd | |
+BSON::ObjectId('4c9df9526e152b0ec70003fd') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:29 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
12) Mongoid::Relations::Referenced::Many #push when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000405", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000405') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000405 | |
+BSON::ObjectId('4c9df9526e152b0ec7000405') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:60 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
13) Mongoid::Relations::Referenced::Many #concat when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000411", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000411') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000411 | |
+BSON::ObjectId('4c9df9526e152b0ec7000411') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:29 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
14) Mongoid::Relations::Referenced::Many #concat when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000419", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000419') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000419 | |
+BSON::ObjectId('4c9df9526e152b0ec7000419') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:60 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
15) Mongoid::Relations::Referenced::Many #build when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000425", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000425') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000425 | |
+BSON::ObjectId('4c9df9526e152b0ec7000425') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:91 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
16) Mongoid::Relations::Referenced::Many #build when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000431", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000431') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000431 | |
+BSON::ObjectId('4c9df9526e152b0ec7000431') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:126 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
17) Mongoid::Relations::Referenced::Many #create when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000447", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000447') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000447 | |
+BSON::ObjectId('4c9df9526e152b0ec7000447') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:231 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
18) Mongoid::Relations::Referenced::Many #create when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000451", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000451') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000451 | |
+BSON::ObjectId('4c9df9526e152b0ec7000451') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:262 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
19) Mongoid::Relations::Referenced::Many #create! when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec700045b", | |
got: BSON::ObjectId('4c9df9526e152b0ec700045b') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec700045b | |
+BSON::ObjectId('4c9df9526e152b0ec700045b') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:296 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
20) Mongoid::Relations::Referenced::Many #create! when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9526e152b0ec7000465", | |
got: BSON::ObjectId('4c9df9526e152b0ec7000465') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9526e152b0ec7000465 | |
+BSON::ObjectId('4c9df9526e152b0ec7000465') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:327 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
21) Mongoid::Relations::Referenced::Many #delete_all when conditions are provided deletes the documents from the database | |
Failure/Error: Post.where(:title => "Testing").count.should == 0 | |
expected: 0, | |
got: 1 (using ==) | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:377 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
22) Mongoid::Relations::Referenced::Many #delete_all when conditions are provided returns the number of documents deleted | |
Failure/Error: person.posts.delete_all(:title => "Testing").should == 1 | |
expected: 1, | |
got: 0 (using ==) | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:381 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
23) Mongoid::Relations::Referenced::Many #delete_all when conditions are not provided deletes the documents from the database | |
Failure/Error: Post.where(:title => "Testing").count.should == 0 | |
expected: 0, | |
got: 1 (using ==) | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:403 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
24) Mongoid::Relations::Referenced::Many #delete_all when conditions are not provided returns the number of documents deleted | |
Failure/Error: person.posts.delete_all.should == 2 | |
expected: 2, | |
got: 0 (using ==) | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:407 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
25) Mongoid::Relations::Referenced::Many #= when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9536e152b0ec70004d0", | |
got: BSON::ObjectId('4c9df9536e152b0ec70004d0') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9536e152b0ec70004d0 | |
+BSON::ObjectId('4c9df9536e152b0ec70004d0') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:750 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
26) Mongoid::Relations::Referenced::Many #= when the parent is not a new record sets the foreign key of the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df9536e152b0ec70004d9", | |
got: BSON::ObjectId('4c9df9536e152b0ec70004d9') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9536e152b0ec70004d9 | |
+BSON::ObjectId('4c9df9536e152b0ec70004d9') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:781 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
27) Mongoid::Document #destroy on a root document deletes the document | |
Failure/Error: lambda { Person.find(@person.id) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/document_spec.rb:163 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
28) Mongoid::Document #reload when document not saved when raising not found error raises an error | |
Failure/Error: lambda { Person.new.reload }.should raise_error(Mongoid::Errors::DocumentNotFound) | |
expected Mongoid::Errors::DocumentNotFound but nothing was raised | |
# ./spec/integration/mongoid/document_spec.rb:378 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
29) Mongoid::Document #reload with relational associations for a referenced_in should reload the association | |
Failure/Error: @game.person.title.should == "Mam" | |
undefined method `title' for nil:NilClass | |
# ./spec/integration/mongoid/document_spec.rb:422 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
30) Mongoid::Persistence #delete deleting a root document deletes the document | |
Failure/Error: lambda { Person.find(@person.id) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/persistence_spec.rb:55 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
31) Mongoid::Persistence #destroy destroying a root document destroys the document | |
Failure/Error: lambda { Person.find(@person.id) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/persistence_spec.rb:104 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
32) Mongoid::Modifiers::Inc #inc updates the database with the new value | |
Failure/Error: person.reload.age.should == 102 | |
expected: 102, | |
got: nil (using ==) | |
# ./spec/integration/mongoid/modifiers/inc_spec.rb:20 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
33) Mongoid::Finders #find using string ids with an id as an argument when the document is not found raises an error | |
Failure/Error: lambda { Person.find("5") }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/finders_spec.rb:34 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
34) Mongoid::Finders #find using string ids with an array of ids as args when no documents found raises an error | |
Failure/Error: lambda { Person.find(["11", "21", "31"]) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/finders_spec.rb:55 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
35) Mongoid::Finders #find using object ids with an id in BSON::ObjectId as an argument when the document is not found raises an error | |
Failure/Error: lambda { Person.find(BSON::ObjectId.new) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/finders_spec.rb:97 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
36) Mongoid::Extensions setting association foreign keys when value is a populated string should set the foreign key as ObjectID | |
Failure/Error: game.reload.person_id.should == person.id | |
expected: "4c9df9586e152b0ec7000869", | |
got: BSON::ObjectId('4c9df9586e152b0ec7000869') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9586e152b0ec7000869 | |
+BSON::ObjectId('4c9df9586e152b0ec7000869') | |
# ./spec/integration/mongoid/extensions_spec.rb:40 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
37) Mongoid::Extensions setting association foreign keys when value is a ObjectID should keep the the foreign key as ObjectID | |
Failure/Error: game.reload.person_id.should == person.id | |
expected: "4c9df9586e152b0ec700086b", | |
got: BSON::ObjectId('4c9df9586e152b0ec700086b') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df9586e152b0ec700086b | |
+BSON::ObjectId('4c9df9586e152b0ec700086b') | |
# ./spec/integration/mongoid/extensions_spec.rb:49 | |
# /home/hubert/.rvm/gems/ruby-1.8.7-p302/gems/activesupport-3.0.0/lib/active_support/dependencies.rb:239:in `inject' | |
Finished in 10.22 seconds | |
2077 examples, 37 failures, 9 pending |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) Mongoid::Attributes .accepts_nested_attributes_for #association_attributes= on a embeds many association when :allow_destroy is enabled removes the items that have _destroy => true set | |
Failure/Error: @person.favorites_attributes = @attributes | |
undefined method `favorites_attributes=' for #<Person:0x00000006ea6e78> | |
# ./lib/mongoid/attributes.rb:23:in `method_missing' | |
# ./spec/unit/mongoid/attributes_spec.rb:133:in `block (6 levels) in <top (required)>' | |
2) Mongoid::Collections .index_information returns index information from the collection | |
Failure/Error: Person.index_information["title_1"].should_not be_nil | |
expected not nil, got nil | |
# ./spec/unit/mongoid/collections_spec.rb:42:in `block (3 levels) in <top (required)>' | |
3) Mongoid::Relations::Referenced::One #= when the parent is a new record sets the foreign key on the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df8c66e152b0d480003a1", | |
got: BSON::ObjectId('4c9df8c66e152b0d480003a1') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c66e152b0d480003a1 | |
+BSON::ObjectId('4c9df8c66e152b0d480003a1') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:31:in `block (4 levels) in <top (required)>' | |
4) Mongoid::Relations::Referenced::One #= when the parent is not a new record sets the foreign key of the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df8c66e152b0d480003a9", | |
got: BSON::ObjectId('4c9df8c66e152b0d480003a9') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c66e152b0d480003a9 | |
+BSON::ObjectId('4c9df8c66e152b0d480003a9') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:62:in `block (4 levels) in <top (required)>' | |
5) Mongoid::Relations::Referenced::One #build_#{name} sets the foreign key on the document | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df8c66e152b0d480003bf", | |
got: BSON::ObjectId('4c9df8c66e152b0d480003bf') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c66e152b0d480003bf | |
+BSON::ObjectId('4c9df8c66e152b0d480003bf') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:153:in `block (3 levels) in <top (required)>' | |
6) Mongoid::Relations::Referenced::One #create_#{name} sets the foreign key on the document | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df8c66e152b0d480003c7", | |
got: BSON::ObjectId('4c9df8c66e152b0d480003c7') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c66e152b0d480003c7 | |
+BSON::ObjectId('4c9df8c66e152b0d480003c7') | |
# ./spec/integration/mongoid/relations/referenced/one_spec.rb:180:in `block (3 levels) in <top (required)>' | |
7) Mongoid::Relations::Referenced::In #= when the child is a new record sets the foreign key on the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df8c66e152b0d480003d0", | |
got: BSON::ObjectId('4c9df8c66e152b0d480003d0') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c66e152b0d480003d0 | |
+BSON::ObjectId('4c9df8c66e152b0d480003d0') | |
# ./spec/integration/mongoid/relations/referenced/in_spec.rb:31:in `block (4 levels) in <top (required)>' | |
8) Mongoid::Relations::Referenced::In #= when the child is not a new record sets the foreign key of the relation | |
Failure/Error: game.person_id.should == person.id | |
expected: "4c9df8c66e152b0d480003d8", | |
got: BSON::ObjectId('4c9df8c66e152b0d480003d8') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c66e152b0d480003d8 | |
+BSON::ObjectId('4c9df8c66e152b0d480003d8') | |
# ./spec/integration/mongoid/relations/referenced/in_spec.rb:62:in `block (4 levels) in <top (required)>' | |
9) Mongoid::Relations::Referenced::Many #<< when the parent is a new record sets the foreign key on the relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003e9":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
10) Mongoid::Relations::Referenced::Many #<< when the parent is a new record sets the base on the inverse relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003ea":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
11) Mongoid::Relations::Referenced::Many #<< when the parent is a new record does not save the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003eb":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
12) Mongoid::Relations::Referenced::Many #<< when the parent is a new record adds the document to the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003ec":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
13) Mongoid::Relations::Referenced::Many #<< when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003ed":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
14) Mongoid::Relations::Referenced::Many #<< when the parent is not a new record sets the base on the inverse relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003ee":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
15) Mongoid::Relations::Referenced::Many #<< when the parent is not a new record saves the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003ef":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
16) Mongoid::Relations::Referenced::Many #<< when the parent is not a new record adds the document to the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f0":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
17) Mongoid::Relations::Referenced::Many #push when the parent is a new record sets the foreign key on the relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f1":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
18) Mongoid::Relations::Referenced::Many #push when the parent is a new record sets the base on the inverse relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f2":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
19) Mongoid::Relations::Referenced::Many #push when the parent is a new record does not save the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f3":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
20) Mongoid::Relations::Referenced::Many #push when the parent is a new record adds the document to the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f4":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
21) Mongoid::Relations::Referenced::Many #push when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f5":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
22) Mongoid::Relations::Referenced::Many #push when the parent is not a new record sets the base on the inverse relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f6":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
23) Mongoid::Relations::Referenced::Many #push when the parent is not a new record saves the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f7":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
24) Mongoid::Relations::Referenced::Many #push when the parent is not a new record adds the document to the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f8":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
25) Mongoid::Relations::Referenced::Many #concat when the parent is a new record sets the foreign key on the relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003f9":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
26) Mongoid::Relations::Referenced::Many #concat when the parent is a new record sets the base on the inverse relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003fa":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
27) Mongoid::Relations::Referenced::Many #concat when the parent is a new record does not save the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003fb":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
28) Mongoid::Relations::Referenced::Many #concat when the parent is a new record adds the document to the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003fc":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:25:in `block (5 levels) in <top (required)>' | |
29) Mongoid::Relations::Referenced::Many #concat when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003fd":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
30) Mongoid::Relations::Referenced::Many #concat when the parent is not a new record sets the base on the inverse relation | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003fe":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
31) Mongoid::Relations::Referenced::Many #concat when the parent is not a new record saves the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d480003ff":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
32) Mongoid::Relations::Referenced::Many #concat when the parent is not a new record adds the document to the target | |
Failure/Error: person.posts.send(method, post) | |
undefined method `to_a' for "4c9df8c66e152b0d48000400":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:56:in `block (5 levels) in <top (required)>' | |
33) Mongoid::Relations::Referenced::Many #build when the parent is a new record sets the foreign key on the relation | |
Failure/Error: person.posts.build(:title => "$$$") | |
undefined method `to_a' for "4c9df8c66e152b0d48000401":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:87:in `block (4 levels) in <top (required)>' | |
34) Mongoid::Relations::Referenced::Many #build when the parent is a new record sets the base on the inverse relation | |
Failure/Error: person.posts.build(:title => "$$$") | |
undefined method `to_a' for "4c9df8c66e152b0d48000402":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:87:in `block (4 levels) in <top (required)>' | |
35) Mongoid::Relations::Referenced::Many #build when the parent is a new record sets the attributes | |
Failure/Error: person.posts.build(:title => "$$$") | |
undefined method `to_a' for "4c9df8c66e152b0d48000403":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:87:in `block (4 levels) in <top (required)>' | |
36) Mongoid::Relations::Referenced::Many #build when the parent is a new record does not save the target | |
Failure/Error: person.posts.build(:title => "$$$") | |
undefined method `to_a' for "4c9df8c66e152b0d48000404":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:87:in `block (4 levels) in <top (required)>' | |
37) Mongoid::Relations::Referenced::Many #build when the parent is a new record adds the document to the target | |
Failure/Error: person.posts.build(:title => "$$$") | |
undefined method `to_a' for "4c9df8c66e152b0d48000405":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:87:in `block (4 levels) in <top (required)>' | |
38) Mongoid::Relations::Referenced::Many #build when the parent is a new record does not perform validation | |
Failure/Error: person.posts.build(:title => "$$$") | |
undefined method `to_a' for "4c9df8c66e152b0d48000406":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:87:in `block (4 levels) in <top (required)>' | |
39) Mongoid::Relations::Referenced::Many #build when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: person.posts.build(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000407":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:122:in `block (4 levels) in <top (required)>' | |
40) Mongoid::Relations::Referenced::Many #build when the parent is not a new record sets the base on the inverse relation | |
Failure/Error: person.posts.build(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000408":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:122:in `block (4 levels) in <top (required)>' | |
41) Mongoid::Relations::Referenced::Many #build when the parent is not a new record sets the attributes | |
Failure/Error: person.posts.build(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000409":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:122:in `block (4 levels) in <top (required)>' | |
42) Mongoid::Relations::Referenced::Many #build when the parent is not a new record does not save the target | |
Failure/Error: person.posts.build(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800040a":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:122:in `block (4 levels) in <top (required)>' | |
43) Mongoid::Relations::Referenced::Many #build when the parent is not a new record adds the document to the target | |
Failure/Error: person.posts.build(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800040b":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:122:in `block (4 levels) in <top (required)>' | |
44) Mongoid::Relations::Referenced::Many #clear when the parent has been persisted when the children are persisted clears out the relation | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800040c":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:158:in `block (5 levels) in <top (required)>' | |
45) Mongoid::Relations::Referenced::Many #clear when the parent has been persisted when the children are persisted marks the documents as deleted | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800040d":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:158:in `block (5 levels) in <top (required)>' | |
46) Mongoid::Relations::Referenced::Many #clear when the parent has been persisted when the children are persisted deletes the documents from the db | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800040e":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:158:in `block (5 levels) in <top (required)>' | |
47) Mongoid::Relations::Referenced::Many #clear when the parent has been persisted when the children are persisted returns the relation | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800040f":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:158:in `block (5 levels) in <top (required)>' | |
48) Mongoid::Relations::Referenced::Many #clear when the parent has been persisted when the children are not persisted clears out the relation | |
Failure/Error: person.posts.build(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000410":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:185:in `block (5 levels) in <top (required)>' | |
49) Mongoid::Relations::Referenced::Many #clear when the parent is not persisted clears out the relation | |
Failure/Error: person.posts.build(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000411":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:205:in `block (4 levels) in <top (required)>' | |
50) Mongoid::Relations::Referenced::Many #create when the parent is a new record sets the foreign key on the relation | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000412":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:227:in `block (4 levels) in <top (required)>' | |
51) Mongoid::Relations::Referenced::Many #create when the parent is a new record sets the base on the inverse relation | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000413":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:227:in `block (4 levels) in <top (required)>' | |
52) Mongoid::Relations::Referenced::Many #create when the parent is a new record sets the attributes | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000414":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:227:in `block (4 levels) in <top (required)>' | |
53) Mongoid::Relations::Referenced::Many #create when the parent is a new record does not save the target | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000415":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:227:in `block (4 levels) in <top (required)>' | |
54) Mongoid::Relations::Referenced::Many #create when the parent is a new record adds the document to the target | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000416":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:227:in `block (4 levels) in <top (required)>' | |
55) Mongoid::Relations::Referenced::Many #create when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000417":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:258:in `block (4 levels) in <top (required)>' | |
56) Mongoid::Relations::Referenced::Many #create when the parent is not a new record sets the base on the inverse relation | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000418":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:258:in `block (4 levels) in <top (required)>' | |
57) Mongoid::Relations::Referenced::Many #create when the parent is not a new record sets the attributes | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000419":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:258:in `block (4 levels) in <top (required)>' | |
58) Mongoid::Relations::Referenced::Many #create when the parent is not a new record saves the target | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800041a":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:258:in `block (4 levels) in <top (required)>' | |
59) Mongoid::Relations::Referenced::Many #create when the parent is not a new record adds the document to the target | |
Failure/Error: person.posts.create(:text => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800041b":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:258:in `block (4 levels) in <top (required)>' | |
60) Mongoid::Relations::Referenced::Many #create! when the parent is a new record sets the foreign key on the relation | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800041c":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:292:in `block (4 levels) in <top (required)>' | |
61) Mongoid::Relations::Referenced::Many #create! when the parent is a new record sets the base on the inverse relation | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800041d":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:292:in `block (4 levels) in <top (required)>' | |
62) Mongoid::Relations::Referenced::Many #create! when the parent is a new record sets the attributes | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800041e":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:292:in `block (4 levels) in <top (required)>' | |
63) Mongoid::Relations::Referenced::Many #create! when the parent is a new record does not save the target | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800041f":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:292:in `block (4 levels) in <top (required)>' | |
64) Mongoid::Relations::Referenced::Many #create! when the parent is a new record adds the document to the target | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000420":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:292:in `block (4 levels) in <top (required)>' | |
65) Mongoid::Relations::Referenced::Many #create! when the parent is not a new record sets the foreign key on the relation | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000421":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:323:in `block (4 levels) in <top (required)>' | |
66) Mongoid::Relations::Referenced::Many #create! when the parent is not a new record sets the base on the inverse relation | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000422":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:323:in `block (4 levels) in <top (required)>' | |
67) Mongoid::Relations::Referenced::Many #create! when the parent is not a new record sets the attributes | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000423":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:323:in `block (4 levels) in <top (required)>' | |
68) Mongoid::Relations::Referenced::Many #create! when the parent is not a new record saves the target | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000424":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:323:in `block (4 levels) in <top (required)>' | |
69) Mongoid::Relations::Referenced::Many #create! when the parent is not a new record adds the document to the target | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000425":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:323:in `block (4 levels) in <top (required)>' | |
70) Mongoid::Relations::Referenced::Many #create! when the parent is not a new record when validation fails raises an error | |
Failure/Error: person.posts.create!(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000426":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:323:in `block (4 levels) in <top (required)>' | |
71) Mongoid::Relations::Referenced::Many #delete_all when conditions are provided removes the correct posts | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000427":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:366:in `block (4 levels) in <top (required)>' | |
72) Mongoid::Relations::Referenced::Many #delete_all when conditions are provided deletes the documents from the database | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000428":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:366:in `block (4 levels) in <top (required)>' | |
73) Mongoid::Relations::Referenced::Many #delete_all when conditions are provided returns the number of documents deleted | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000429":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:366:in `block (4 levels) in <top (required)>' | |
74) Mongoid::Relations::Referenced::Many #delete_all when conditions are not provided removes the correct posts | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800042a":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:392:in `block (4 levels) in <top (required)>' | |
75) Mongoid::Relations::Referenced::Many #delete_all when conditions are not provided deletes the documents from the database | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800042b":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:392:in `block (4 levels) in <top (required)>' | |
76) Mongoid::Relations::Referenced::Many #delete_all when conditions are not provided returns the number of documents deleted | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800042c":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:392:in `block (4 levels) in <top (required)>' | |
77) Mongoid::Relations::Referenced::Many #destroy_all when conditions are provided removes the correct posts | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800042d":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:421:in `block (4 levels) in <top (required)>' | |
78) Mongoid::Relations::Referenced::Many #destroy_all when conditions are provided deletes the documents from the database | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800042e":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:421:in `block (4 levels) in <top (required)>' | |
79) Mongoid::Relations::Referenced::Many #destroy_all when conditions are provided returns the number of documents deleted | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d4800042f":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:421:in `block (4 levels) in <top (required)>' | |
80) Mongoid::Relations::Referenced::Many #destroy_all when conditions are not provided removes the correct posts | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000430":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:447:in `block (4 levels) in <top (required)>' | |
81) Mongoid::Relations::Referenced::Many #destroy_all when conditions are not provided deletes the documents from the database | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000431":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:447:in `block (4 levels) in <top (required)>' | |
82) Mongoid::Relations::Referenced::Many #destroy_all when conditions are not provided returns the number of documents deleted | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c66e152b0d48000432":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:447:in `block (4 levels) in <top (required)>' | |
83) Mongoid::Relations::Referenced::Many #find when providing an id when the id matches returns the matching document | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c66e152b0d48000433":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
84) Mongoid::Relations::Referenced::Many #find when providing an id when the id does not match when config set to raise error raises an error | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c66e152b0d48000434":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
85) Mongoid::Relations::Referenced::Many #find when providing an id when the id does not match when config set not to raise error returns nil | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d48000435":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
86) Mongoid::Relations::Referenced::Many #find when providing an array of ids when the ids match returns the matching documents | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d48000436":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
87) Mongoid::Relations::Referenced::Many #find when providing an array of ids when the ids do not match when config set to raise error raises an error | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d48000437":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
88) Mongoid::Relations::Referenced::Many #find when providing an array of ids when the ids do not match when config set not to raise error returns an empty array | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d48000438":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
89) Mongoid::Relations::Referenced::Many #find when finding first when there is a match returns the first matching document | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d48000439":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
90) Mongoid::Relations::Referenced::Many #find when finding first when there is no match returns nil | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d4800043a":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
91) Mongoid::Relations::Referenced::Many #find when finding last when there is a match returns the last matching document | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d4800043b":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
92) Mongoid::Relations::Referenced::Many #find when finding last when there is no match returns nil | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d4800043c":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
93) Mongoid::Relations::Referenced::Many #find when finding all when there is a match returns the matching documents | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d4800043d":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
94) Mongoid::Relations::Referenced::Many #find when finding all when there is no match returns an empty array | |
Failure/Error: person.posts.create(:title => "Test") | |
undefined method `to_a' for "4c9df8c76e152b0d4800043e":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:474:in `block (3 levels) in <top (required)>' | |
95) Mongoid::Relations::Referenced::Many #find_or_create_by when the document exists returns the document | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c76e152b0d4800043f":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:662:in `block (3 levels) in <top (required)>' | |
96) Mongoid::Relations::Referenced::Many #find_or_create_by when the document does not exist sets the new document attributes | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c76e152b0d48000440":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:662:in `block (3 levels) in <top (required)>' | |
97) Mongoid::Relations::Referenced::Many #find_or_create_by when the document does not exist returns a newly persisted document | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c76e152b0d48000441":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:662:in `block (3 levels) in <top (required)>' | |
98) Mongoid::Relations::Referenced::Many #find_or_initialize_by when the document exists returns the document | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c76e152b0d48000442":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:699:in `block (3 levels) in <top (required)>' | |
99) Mongoid::Relations::Referenced::Many #find_or_initialize_by when the document does not exist sets the new document attributes | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c76e152b0d48000443":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:699:in `block (3 levels) in <top (required)>' | |
100) Mongoid::Relations::Referenced::Many #find_or_initialize_by when the document does not exist returns a non persisted document | |
Failure/Error: person.posts.create(:title => "Testing") | |
undefined method `to_a' for "4c9df8c76e152b0d48000444":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/many.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:699:in `block (3 levels) in <top (required)>' | |
101) Mongoid::Relations::Referenced::Many #= when the parent is a new record sets the foreign key on the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df8c76e152b0d48000447", | |
got: BSON::ObjectId('4c9df8c76e152b0d48000447') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c76e152b0d48000447 | |
+BSON::ObjectId('4c9df8c76e152b0d48000447') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:750:in `block (4 levels) in <top (required)>' | |
102) Mongoid::Relations::Referenced::Many #= when the parent is not a new record sets the foreign key of the relation | |
Failure/Error: post.person_id.should == person.id | |
expected: "4c9df8c76e152b0d48000450", | |
got: BSON::ObjectId('4c9df8c76e152b0d48000450') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c76e152b0d48000450 | |
+BSON::ObjectId('4c9df8c76e152b0d48000450') | |
# ./spec/integration/mongoid/relations/referenced/many_spec.rb:781:in `block (4 levels) in <top (required)>' | |
103) Mongoid::Document #destroy on a root document deletes the document | |
Failure/Error: lambda { Person.find(@person.id) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/document_spec.rb:163:in `block (4 levels) in <top (required)>' | |
104) Mongoid::Document #reload when document not saved when raising not found error raises an error | |
Failure/Error: lambda { Person.new.reload }.should raise_error(Mongoid::Errors::DocumentNotFound) | |
expected Mongoid::Errors::DocumentNotFound but nothing was raised | |
# ./spec/integration/mongoid/document_spec.rb:378:in `block (5 levels) in <top (required)>' | |
105) Mongoid::Document #reload with relational associations for a references_one should reload the association | |
Failure/Error: @person.game.score.should == 75 | |
undefined method `to_a' for "4c9df8c86e152b0d48000671":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/one.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./spec/integration/mongoid/document_spec.rb:409:in `block (5 levels) in <top (required)>' | |
106) Mongoid::Document #reload with relational associations for a referenced_in should reload the association | |
Failure/Error: @game.person.title.should == "Mam" | |
undefined method `title' for nil:NilClass | |
# ./spec/integration/mongoid/document_spec.rb:422:in `block (5 levels) in <top (required)>' | |
107) Mongoid::Persistence #delete deleting a root document deletes the document | |
Failure/Error: lambda { Person.find(@person.id) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/persistence_spec.rb:55:in `block (4 levels) in <top (required)>' | |
108) Mongoid::Persistence #destroy destroying a root document destroys the document | |
Failure/Error: lambda { Person.find(@person.id) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/persistence_spec.rb:104:in `block (4 levels) in <top (required)>' | |
109) Mongoid::Modifiers::Inc #inc updates the database with the new value | |
Failure/Error: person.reload.age.should == 102 | |
expected: 102, | |
got: nil (using ==) | |
# ./spec/integration/mongoid/modifiers/inc_spec.rb:20:in `block (3 levels) in <top (required)>' | |
110) Mongoid::Finders #find using string ids with an id as an argument when the document is not found raises an error | |
Failure/Error: lambda { Person.find("5") }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/finders_spec.rb:34:in `block (6 levels) in <top (required)>' | |
111) Mongoid::Finders #find using string ids with an array of ids as args when no documents found raises an error | |
Failure/Error: lambda { Person.find(["11", "21", "31"]) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/finders_spec.rb:55:in `block (6 levels) in <top (required)>' | |
112) Mongoid::Finders #find using object ids with an id in BSON::ObjectId as an argument when the document is not found raises an error | |
Failure/Error: lambda { Person.find(BSON::ObjectId.new) }.should raise_error | |
expected Exception but nothing was raised | |
# ./spec/integration/mongoid/finders_spec.rb:97:in `block (6 levels) in <top (required)>' | |
113) Mongoid::Attributes when persisting nested with accepts_nested_attributes_for when the nested document is a references_one adds a document | |
Failure/Error: person.update_attributes(:game_attributes => {"score" => "78"}) | |
undefined method `to_a' for "4c9df8c96e152b0d480007db":String | |
# ./lib/mongoid/relations/builder.rb:31:in `query?' | |
# ./lib/mongoid/relations/builders/referenced/one.rb:19:in `build' | |
# ./lib/mongoid/relations/accessors.rb:50:in `build' | |
# ./lib/mongoid/relations/accessors.rb:87:in `block (2 levels) in getter' | |
# ./lib/mongoid/relations/builders/nested_attributes/one.rb:61:in `build' | |
# ./lib/mongoid/nested_attributes.rb:45:in `block (2 levels) in accepts_nested_attributes_for' | |
# ./lib/mongoid/attributes.rb:53:in `block in process' | |
# ./lib/mongoid/attributes.rb:42:in `each_pair' | |
# ./lib/mongoid/attributes.rb:42:in `process' | |
# ./lib/mongoid/attributes.rb:145:in `write_attributes' | |
# ./lib/mongoid/persistence.rb:92:in `update_attributes' | |
# ./spec/integration/mongoid/attributes_spec.rb:119:in `block (4 levels) in <top (required)>' | |
114) Mongoid::Extensions setting association foreign keys when value is a populated string should set the foreign key as ObjectID | |
Failure/Error: game.reload.person_id.should == person.id | |
expected: "4c9df8c96e152b0d480007df", | |
got: BSON::ObjectId('4c9df8c96e152b0d480007df') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c96e152b0d480007df | |
+BSON::ObjectId('4c9df8c96e152b0d480007df') | |
# ./spec/integration/mongoid/extensions_spec.rb:40:in `block (4 levels) in <top (required)>' | |
115) Mongoid::Extensions setting association foreign keys when value is a ObjectID should keep the the foreign key as ObjectID | |
Failure/Error: game.reload.person_id.should == person.id | |
expected: "4c9df8c96e152b0d480007e1", | |
got: BSON::ObjectId('4c9df8c96e152b0d480007e1') (using ==) | |
Diff: | |
@@ -1,2 +1,2 @@ | |
-4c9df8c96e152b0d480007e1 | |
+BSON::ObjectId('4c9df8c96e152b0d480007e1') | |
# ./spec/integration/mongoid/extensions_spec.rb:49:in `block (4 levels) in <top (required)>' | |
Finished in 5.97 seconds | |
2077 examples, 115 failures, 9 pending |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment