!RBIX 9595534255132031488 x M 1 n n x 10 __script__ i 46 5 7 0 64 47 49 1 1 15 5 7 2 64 47 49 1 1 15 5 7 3 64 44 43 4 79 49 5 1 13 7 6 2 49 7 2 15 56 8 47 50 9 2 15 2 11 I 6 I 0 I 0 I 0 n p 10 s 11 spec_helper x 7 require s 7 timecop s 29 RailsAdmin::Adapters::Mongoid x 4 Hash x 16 new_from_literal x 7 mongoid x 3 []= M 1 p 2 x 9 for_block t n x 9 __block__ i 99 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 15 5 7 5 64 56 6 47 50 2 1 15 5 7 7 64 56 8 47 50 2 1 15 5 7 9 64 56 10 47 50 2 1 15 5 7 11 64 56 12 47 50 2 1 15 5 7 13 64 56 14 47 50 2 1 15 5 7 15 64 56 16 47 50 2 1 15 5 7 17 64 56 18 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 19 s 13 #associations M 1 p 2 x 9 for_block t n x 9 __block__ i 141 5 7 0 56 1 47 50 2 1 15 5 7 0 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 7 1 15 5 7 8 64 56 9 47 50 7 1 15 5 7 10 64 56 11 47 50 7 1 15 5 7 12 64 56 13 47 50 7 1 15 5 7 14 64 56 15 47 50 7 1 15 5 7 16 64 56 17 47 50 7 1 15 5 7 18 64 56 19 47 50 7 1 15 5 7 20 64 56 21 47 50 7 1 15 5 7 22 64 56 23 47 50 7 1 15 5 7 24 64 56 25 47 50 7 1 15 5 7 26 64 56 27 47 50 7 1 11 I 4 I 0 I 0 I 0 I -2 p 28 x 3 all M 1 p 2 x 9 for_block t n x 9 __block__ i 408 45 0 1 43 2 49 3 0 15 99 7 4 1 65 49 5 3 13 99 12 7 6 12 7 7 12 65 12 49 8 4 15 49 6 0 15 99 7 9 1 65 49 5 3 13 99 12 7 6 12 7 10 12 65 12 49 8 4 15 49 6 0 15 99 7 11 1 65 49 5 3 13 99 12 7 6 12 7 12 12 65 12 49 8 4 15 49 6 0 15 99 7 13 1 65 49 5 3 13 99 12 7 6 12 7 14 12 65 12 49 8 4 15 49 6 0 15 99 7 15 1 65 49 5 3 13 99 12 7 6 12 7 16 12 65 12 49 8 4 15 49 6 0 15 99 7 17 1 65 49 5 3 13 99 12 7 6 12 7 18 12 65 12 49 8 4 15 49 6 0 15 99 7 19 1 65 49 5 3 13 99 12 7 6 12 7 20 12 65 12 49 8 4 15 49 6 0 15 45 0 21 43 2 13 71 22 47 9 224 47 49 23 0 13 45 4 24 47 49 25 1 15 8 230 45 4 26 49 22 1 38 27 15 45 0 28 43 2 13 71 22 47 9 259 47 49 23 0 13 45 9 29 47 49 25 1 15 8 265 45 9 30 49 22 1 38 31 15 45 0 32 43 2 13 71 22 47 9 294 47 49 23 0 13 45 11 33 47 49 25 1 15 8 300 45 11 34 49 22 1 38 35 15 45 0 36 43 2 13 71 22 47 9 329 47 49 23 0 13 45 13 37 47 49 25 1 15 8 335 45 13 38 49 22 1 38 39 15 45 0 40 43 2 13 71 22 47 9 364 47 49 23 0 13 45 15 41 47 49 25 1 15 8 370 45 15 42 49 22 1 38 43 15 45 0 44 43 2 13 71 22 47 9 399 47 49 23 0 13 45 17 45 47 49 25 1 15 8 405 45 17 46 49 22 1 38 47 11 I 7 I 0 I 0 I 0 I -2 p 48 x 10 RailsAdmin n x 13 AbstractModel x 25 reset_polymorphic_parents x 9 MongoBlog x 10 open_class x 14 __class_init__ M 1 n n x 9 MongoBlog i 53 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 15 5 7 6 44 43 7 79 49 8 1 13 7 9 7 10 49 11 2 15 47 49 5 2 15 5 7 12 47 49 13 1 11 I 6 I 0 I 0 I 0 n p 14 x 7 Mongoid n x 8 Document x 7 include x 11 mongo_posts x 8 has_many x 14 mongo_comments x 4 Hash x 16 new_from_literal x 2 as x 11 commentable x 3 []= x 13 mongo_blog_id x 5 field p 9 I 2 I a I d I b I 15 I c I 2d I d I 35 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 13 attach_method x 9 MongoPost M 1 n n x 9 MongoPost i 69 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 15 5 7 6 47 49 7 1 15 5 7 8 44 43 9 79 49 10 1 13 7 11 7 12 49 13 2 15 47 49 14 2 15 5 7 15 47 49 16 1 15 5 7 15 47 49 17 1 11 I 6 I 0 I 0 I 0 n p 18 x 7 Mongoid n x 8 Document x 7 include x 10 mongo_blog x 10 belongs_to x 16 mongo_categories x 23 has_and_belongs_to_many x 14 mongo_comments x 4 Hash x 16 new_from_literal x 2 as x 11 commentable x 3 []= x 8 has_many x 10 mongo_note x 10 embeds_one x 29 accepts_nested_attributes_for p 13 I 2 I 11 I d I 12 I 15 I 13 I 1d I 14 I 35 I 15 I 3d I 16 I 45 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 13 MongoCategory M 1 n n x 13 MongoCategory i 21 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 11 I 2 I 0 I 0 I 0 n p 6 x 7 Mongoid n x 8 Document x 7 include x 11 mongo_posts x 23 has_and_belongs_to_many p 5 I 2 I 1a I d I 1b I 15 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 9 MongoUser M 1 n n x 9 MongoUser i 150 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 15 5 7 6 47 49 7 1 15 5 7 6 47 49 8 1 15 5 7 9 44 43 10 79 49 11 1 13 7 12 45 13 14 49 15 2 15 47 49 16 2 15 5 7 17 44 43 10 79 49 11 1 13 7 12 45 13 18 49 15 2 15 47 49 16 2 15 5 7 19 44 43 10 79 49 11 1 13 7 12 45 13 20 49 15 2 15 47 49 16 2 15 5 7 19 44 43 10 79 49 11 1 13 7 21 44 43 10 79 49 11 1 13 7 22 4 255 49 15 2 15 49 15 2 15 47 49 23 2 11 I 9 I 0 I 0 I 0 n p 24 x 7 Mongoid n x 8 Document x 7 include x 13 mongo_profile x 7 has_one x 11 mongo_notes x 11 embeds_many x 29 accepts_nested_attributes_for x 4 name x 4 Hash x 16 new_from_literal x 4 type x 6 String n x 3 []= x 5 field x 7 message n x 10 short_text n x 6 length x 7 maximum x 9 validates p 17 I 2 I 1f I d I 20 I 15 I 21 I 1d I 22 I 25 I 23 I 3e I 24 I 57 I 25 I 70 I 27 I 96 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 12 MongoProfile M 1 n n x 12 MongoProfile i 21 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 11 I 2 I 0 I 0 I 0 n p 6 x 7 Mongoid n x 8 Document x 7 include x 10 mongo_user x 10 belongs_to p 5 I 2 I 2b I d I 2c I 15 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 12 MongoComment M 1 n n x 12 MongoComment i 36 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 44 43 5 79 49 6 1 13 7 7 2 49 8 2 15 47 49 9 2 11 I 6 I 0 I 0 I 0 n p 10 x 7 Mongoid n x 8 Document x 7 include x 11 commentable x 4 Hash x 16 new_from_literal x 11 polymorphic x 3 []= x 10 belongs_to p 5 I 2 I 30 I d I 31 I 24 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 9 MongoNote M 1 n n x 9 MongoNote i 29 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 15 5 7 6 47 49 5 1 11 I 2 I 0 I 0 I 0 n p 7 x 7 Mongoid n x 8 Document x 7 include x 10 mongo_post x 11 embedded_in x 10 mongo_user p 7 I 2 I 35 I d I 36 I 15 I 37 I 1d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 n x 3 new x 8 allocate n x 10 initialize n x 5 @blog n n n x 5 @post n n n x 9 @category n n n x 5 @user n n n x 8 @profile n n n x 8 @comment p 29 I 0 I 7 I 9 I 9 I 24 I 10 I 3f I 19 I 5a I 1e I 75 I 2a I 90 I 2f I ab I 34 I c6 I 3a I e9 I 3b I 10c I 3c I 12f I 3d I 152 I 3e I 175 I 3f I 198 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before M 1 p 2 x 9 for_block t n x 9 __block__ i 9 45 0 1 43 2 49 3 0 11 I 2 I 0 I 0 I 0 I -2 p 4 x 10 RailsAdmin n x 13 AbstractModel x 25 reset_polymorphic_parents p 3 I 0 I 43 I 9 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 5 after s 18 lists associations M 1 p 2 x 9 for_block t n x 9 __block__ i 27 39 0 49 1 0 56 2 50 3 0 49 4 0 7 5 7 6 7 7 7 8 35 4 49 9 1 11 I 6 I 0 I 0 I 0 I -2 p 10 x 5 @post x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 12 57 19 0 15 20 0 7 0 49 1 1 11 I 4 I 1 I 1 I 1 n p 2 x 4 name x 2 [] p 3 I 0 I 47 I c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 3 map x 6 should x 10 mongo_blog x 16 mongo_categories x 14 mongo_comments x 10 mongo_note x 2 =~ p 3 I 0 I 47 I 1b x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 92 reads correct and know types in [:belongs_to, :has_and_belongs_to_many, :has_many, :has_one] M 1 p 2 x 9 for_block t n x 9 __block__ i 48 39 0 49 1 0 39 2 49 1 0 81 3 39 4 49 1 0 81 3 56 5 50 6 0 49 7 0 49 8 0 7 9 64 7 10 64 7 11 64 7 12 64 35 4 49 13 1 11 I 6 I 0 I 0 I 0 I -2 p 14 x 5 @post x 12 associations x 5 @blog x 1 + x 5 @user M 1 p 2 x 9 for_block t n x 9 __block__ i 15 57 19 0 15 20 0 7 0 49 1 1 49 2 0 11 I 4 I 1 I 1 I 1 n p 3 x 4 type x 2 [] x 4 to_s p 3 I 0 I 4b I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 3 map x 4 uniq x 6 should s 10 belongs_to s 23 has_and_belongs_to_many s 8 has_many s 7 has_one x 2 =~ p 3 I 0 I 4b I 30 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 47 has correct parameter of belongs_to association M 1 p 2 x 9 for_block t n x 9 __block__ i 164 39 0 49 1 0 56 2 50 3 0 19 0 15 20 0 56 4 50 5 0 49 6 0 44 43 7 4 11 49 8 1 13 7 9 7 10 49 11 2 15 13 7 12 7 13 64 49 11 2 15 13 7 14 7 15 49 11 2 15 13 7 16 7 17 49 11 2 15 13 7 18 1 49 11 2 15 13 7 19 1 49 11 2 15 13 7 20 1 49 11 2 15 13 7 21 3 49 11 2 15 13 7 22 1 49 11 2 15 13 7 23 1 49 11 2 15 13 7 24 1 49 11 2 15 83 25 15 20 0 7 26 49 27 1 49 28 0 49 6 0 7 29 83 25 15 20 0 7 30 49 27 1 49 28 0 49 6 0 45 31 32 83 25 11 I 7 I 1 I 0 I 0 I -2 p 33 x 5 @post x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 10 mongo_blog x 2 == p 3 I 0 I 4f I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 4 find M 1 p 2 x 9 for_block t n x 9 __block__ i 22 58 37 19 0 15 37 19 1 15 15 7 0 7 1 35 2 20 0 49 2 1 11 I 5 I 2 I 2 I 2 n p 3 x 16 primary_key_proc x 10 model_proc x 8 include? p 3 I 0 I 50 I 16 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 1 k x 1 v x 6 reject x 6 should x 4 Hash x 16 new_from_literal x 4 name x 10 mongo_blog x 3 []= x 11 pretty_name s 10 Mongo blog x 4 type x 10 belongs_to x 11 foreign_key x 13 mongo_blog_id x 12 foreign_type x 18 foreign_inverse_of x 2 as x 11 polymorphic x 10 inverse_of x 9 read_only x 11 nested_form x 2 == x 16 primary_key_proc x 2 [] x 4 call x 3 _id x 10 model_proc x 9 MongoBlog n p 33 I 0 I 4f I d I 50 I 17 I 5c I 20 I 51 I 29 I 52 I 33 I 53 I 3c I 54 I 45 I 55 I 4d I 56 I 55 I 57 I 5d I 58 I 65 I 59 I 6d I 5a I 75 I 5b I 7f I 5d I 91 I 5e I a4 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 param s 45 has correct parameter of has_many association M 1 p 2 x 9 for_block t n x 9 __block__ i 187 39 0 49 1 0 56 2 50 3 0 19 0 15 20 0 56 4 50 5 0 49 6 0 44 43 7 4 11 49 8 1 13 7 9 7 10 49 11 2 15 13 7 12 7 13 64 49 11 2 15 13 7 14 7 15 49 11 2 15 13 7 16 7 17 49 11 2 15 13 7 18 1 49 11 2 15 13 7 19 1 49 11 2 15 13 7 20 1 49 11 2 15 13 7 21 3 49 11 2 15 13 7 22 1 49 11 2 15 13 7 23 1 49 11 2 15 13 7 24 1 49 11 2 15 83 25 15 20 0 7 26 49 27 1 49 28 0 49 6 0 7 29 83 25 15 20 0 7 30 49 27 1 49 28 0 49 6 0 45 31 32 83 25 15 39 33 49 34 0 56 35 50 3 0 7 14 49 27 1 49 6 0 7 36 83 25 11 I 7 I 1 I 0 I 0 I -2 p 37 x 5 @blog x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 11 mongo_posts x 2 == p 3 I 0 I 62 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 4 find M 1 p 2 x 9 for_block t n x 9 __block__ i 22 58 37 19 0 15 37 19 1 15 15 7 0 7 1 35 2 20 0 49 2 1 11 I 5 I 2 I 2 I 2 n p 3 x 16 primary_key_proc x 10 model_proc x 8 include? p 3 I 0 I 63 I 16 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 1 k x 1 v x 6 reject x 6 should x 4 Hash x 16 new_from_literal x 4 name x 11 mongo_posts x 3 []= x 11 pretty_name s 11 Mongo posts x 4 type x 8 has_many x 11 foreign_key x 13 mongo_blog_id x 12 foreign_type x 18 foreign_inverse_of x 2 as x 11 polymorphic x 10 inverse_of x 9 read_only x 11 nested_form x 2 == x 16 primary_key_proc x 2 [] x 4 call x 3 _id x 10 model_proc x 9 MongoPost n x 5 @post x 10 properties M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 13 mongo_blog_id x 2 == p 3 I 0 I 72 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 f x 14 bson_object_id p 35 I 0 I 62 I d I 63 I 17 I 6f I 20 I 64 I 29 I 65 I 33 I 66 I 3c I 67 I 45 I 68 I 4d I 69 I 55 I 6a I 5d I 6b I 65 I 6c I 6d I 6d I 75 I 6e I 7f I 70 I 91 I 71 I a4 I 72 I bb x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 param s 71 should not confuse foreign_key column which belongs to associated model M 1 p 2 x 9 for_block t n x 9 __block__ i 23 39 0 49 1 0 56 2 50 3 0 7 4 49 5 1 49 6 0 7 7 83 8 11 I 3 I 0 I 0 I 0 I -2 p 9 x 5 @blog x 10 properties M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 13 mongo_blog_id x 2 == p 3 I 0 I 76 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 f x 4 find x 4 type x 2 [] x 6 should x 6 string x 2 == p 3 I 0 I 76 I 17 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 60 has correct parameter of has_and_belongs_to_many association M 1 p 2 x 9 for_block t n x 9 __block__ i 164 39 0 49 1 0 56 2 50 3 0 19 0 15 20 0 56 4 50 5 0 49 6 0 44 43 7 4 11 49 8 1 13 7 9 7 10 49 11 2 15 13 7 12 7 13 64 49 11 2 15 13 7 14 7 15 49 11 2 15 13 7 16 7 17 49 11 2 15 13 7 18 1 49 11 2 15 13 7 19 1 49 11 2 15 13 7 20 1 49 11 2 15 13 7 21 3 49 11 2 15 13 7 22 1 49 11 2 15 13 7 23 1 49 11 2 15 13 7 24 1 49 11 2 15 83 25 15 20 0 7 26 49 27 1 49 28 0 49 6 0 7 29 83 25 15 20 0 7 30 49 27 1 49 28 0 49 6 0 45 31 32 83 25 11 I 7 I 1 I 0 I 0 I -2 p 33 x 5 @post x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 16 mongo_categories x 2 == p 3 I 0 I 7a I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 4 find M 1 p 2 x 9 for_block t n x 9 __block__ i 22 58 37 19 0 15 37 19 1 15 15 7 0 7 1 35 2 20 0 49 2 1 11 I 5 I 2 I 2 I 2 n p 3 x 16 primary_key_proc x 10 model_proc x 8 include? p 3 I 0 I 7b I 16 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 1 k x 1 v x 6 reject x 6 should x 4 Hash x 16 new_from_literal x 4 name x 16 mongo_categories x 3 []= x 11 pretty_name s 16 Mongo categories x 4 type x 23 has_and_belongs_to_many x 11 foreign_key x 18 mongo_category_ids x 12 foreign_type x 18 foreign_inverse_of x 2 as x 11 polymorphic x 10 inverse_of x 9 read_only x 11 nested_form x 2 == x 16 primary_key_proc x 2 [] x 4 call x 3 _id x 10 model_proc x 13 MongoCategory n p 33 I 0 I 7a I d I 7b I 17 I 87 I 20 I 7c I 29 I 7d I 33 I 7e I 3c I 7f I 45 I 80 I 4d I 81 I 55 I 82 I 5d I 83 I 65 I 84 I 6d I 85 I 75 I 86 I 7f I 88 I 91 I 89 I a4 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 param s 59 has correct parameter of polymorphic belongs_to association M 1 p 2 x 9 for_block t n x 9 __block__ i 221 45 0 1 43 2 7 3 49 4 1 7 5 64 7 6 64 7 7 64 7 8 64 7 9 64 7 10 64 35 6 49 11 1 15 39 12 49 13 0 56 14 50 15 0 19 0 15 20 0 56 16 50 17 0 49 18 0 44 43 19 4 11 49 20 1 13 7 21 7 22 49 23 2 15 13 7 24 7 25 64 49 23 2 15 13 7 26 7 27 49 23 2 15 13 7 28 7 29 49 23 2 15 13 7 30 7 31 49 23 2 15 13 7 32 45 33 34 43 35 7 36 64 49 37 1 9 131 7 38 8 132 1 49 23 2 15 13 7 39 1 49 23 2 15 13 7 40 2 49 23 2 15 13 7 41 1 49 23 2 15 13 7 42 1 49 23 2 15 13 7 43 1 49 23 2 15 83 44 15 20 0 7 45 49 46 1 49 47 0 49 18 0 7 48 83 44 15 20 0 7 49 49 46 1 49 47 0 49 18 0 45 50 51 45 52 53 35 2 83 44 11 I 9 I 1 I 0 I 0 I -2 p 54 x 10 RailsAdmin n x 6 Config x 11 models_pool x 5 stub! s 9 MongoBlog s 9 MongoPost s 13 MongoCategory s 9 MongoUser s 12 MongoProfile s 12 MongoComment x 10 and_return x 8 @comment x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 11 commentable x 2 == p 3 I 0 I 8e I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 4 find M 1 p 2 x 9 for_block t n x 9 __block__ i 22 58 37 19 0 15 37 19 1 15 15 7 0 7 1 35 2 20 0 49 2 1 11 I 5 I 2 I 2 I 2 n p 3 x 16 primary_key_proc x 10 model_proc x 8 include? p 3 I 0 I 8f I 16 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 1 k x 1 v x 6 reject x 6 should x 4 Hash x 16 new_from_literal x 4 name x 11 commentable x 3 []= x 11 pretty_name s 11 Commentable x 4 type x 10 belongs_to x 11 foreign_key x 14 commentable_id x 12 foreign_type x 16 commentable_type x 18 foreign_inverse_of x 7 Mongoid n x 7 VERSION s 5 3.0.0 x 2 >= x 17 commentable_field x 2 as x 11 polymorphic x 10 inverse_of x 9 read_only x 11 nested_form x 2 == x 16 primary_key_proc x 2 [] x 4 call x 3 _id x 10 model_proc x 9 MongoBlog n x 9 MongoPost n p 37 I 0 I 8d I 22 I 8e I 2f I 8f I 39 I 9b I 42 I 90 I 4b I 91 I 55 I 92 I 5e I 93 I 67 I 94 I 70 I 95 I 84 I 0 I 89 I 96 I 91 I 97 I 99 I 98 I a1 I 99 I a9 I 9a I b3 I 9c I c5 I 9d I dd x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 param s 65 has correct parameter of polymorphic inverse has_many association M 1 p 2 x 9 for_block t n x 9 __block__ i 199 45 0 1 43 2 7 3 49 4 1 7 5 64 7 6 64 7 7 64 7 8 64 7 9 64 7 10 64 35 6 49 11 1 15 39 12 49 13 0 56 14 50 15 0 19 0 15 20 0 56 16 50 17 0 49 18 0 44 43 19 4 11 49 20 1 13 7 21 7 22 49 23 2 15 13 7 24 7 25 64 49 23 2 15 13 7 26 7 27 49 23 2 15 13 7 28 7 29 49 23 2 15 13 7 30 1 49 23 2 15 13 7 31 1 49 23 2 15 13 7 32 7 33 49 23 2 15 13 7 34 3 49 23 2 15 13 7 35 1 49 23 2 15 13 7 36 1 49 23 2 15 13 7 37 1 49 23 2 15 83 38 15 20 0 7 39 49 40 1 49 41 0 49 18 0 7 42 83 38 15 20 0 7 43 49 40 1 49 41 0 49 18 0 45 44 45 83 38 11 I 9 I 1 I 0 I 0 I -2 p 46 x 10 RailsAdmin n x 6 Config x 11 models_pool x 5 stub! s 9 MongoBlog s 9 MongoPost s 13 MongoCategory s 9 MongoUser s 12 MongoProfile s 12 MongoComment x 10 and_return x 5 @blog x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 14 mongo_comments x 2 == p 3 I 0 I a2 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 4 find M 1 p 2 x 9 for_block t n x 9 __block__ i 22 58 37 19 0 15 37 19 1 15 15 7 0 7 1 35 2 20 0 49 2 1 11 I 5 I 2 I 2 I 2 n p 3 x 16 primary_key_proc x 10 model_proc x 8 include? p 3 I 0 I a3 I 16 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 1 k x 1 v x 6 reject x 6 should x 4 Hash x 16 new_from_literal x 4 name x 14 mongo_comments x 3 []= x 11 pretty_name s 14 Mongo comments x 4 type x 8 has_many x 11 foreign_key x 14 commentable_id x 12 foreign_type x 18 foreign_inverse_of x 2 as x 11 commentable x 11 polymorphic x 10 inverse_of x 9 read_only x 11 nested_form x 2 == x 16 primary_key_proc x 2 [] x 4 call x 3 _id x 10 model_proc x 12 MongoComment n p 35 I 0 I a1 I 22 I a2 I 2f I a3 I 39 I af I 42 I a4 I 4b I a5 I 55 I a6 I 5e I a7 I 67 I a8 I 6f I a9 I 77 I aa I 80 I ab I 88 I ac I 90 I ad I 98 I ae I a2 I b0 I b4 I b1 I c7 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 param s 47 has correct parameter of embeds_one association M 1 p 2 x 9 for_block t n x 9 __block__ i 185 39 0 49 1 0 56 2 50 3 0 19 0 15 20 0 56 4 50 5 0 49 6 0 44 43 7 4 11 49 8 1 13 7 9 7 10 49 11 2 15 13 7 12 7 13 64 49 11 2 15 13 7 14 7 15 49 11 2 15 13 7 16 1 49 11 2 15 13 7 17 1 49 11 2 15 13 7 18 1 49 11 2 15 13 7 19 1 49 11 2 15 13 7 20 3 49 11 2 15 13 7 21 1 49 11 2 15 13 7 22 1 49 11 2 15 13 7 23 44 43 7 80 49 8 1 13 7 24 3 49 11 2 15 13 7 25 3 49 11 2 15 49 11 2 15 83 26 15 20 0 7 27 49 28 1 49 29 0 49 6 0 7 30 83 26 15 20 0 7 31 49 28 1 49 29 0 49 6 0 45 32 33 83 26 11 I a I 1 I 0 I 0 I -2 p 34 x 5 @post x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 10 mongo_note x 2 == p 3 I 0 I b5 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 4 find M 1 p 2 x 9 for_block t n x 9 __block__ i 22 58 37 19 0 15 37 19 1 15 15 7 0 7 1 35 2 20 0 49 2 1 11 I 5 I 2 I 2 I 2 n p 3 x 16 primary_key_proc x 10 model_proc x 8 include? p 3 I 0 I b6 I 16 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 1 k x 1 v x 6 reject x 6 should x 4 Hash x 16 new_from_literal x 4 name x 10 mongo_note x 3 []= x 11 pretty_name s 10 Mongo note x 4 type x 7 has_one x 11 foreign_key x 12 foreign_type x 18 foreign_inverse_of x 2 as x 11 polymorphic x 10 inverse_of x 9 read_only x 11 nested_form x 13 allow_destroy x 11 update_only x 2 == x 16 primary_key_proc x 2 [] x 4 call x 3 _id x 10 model_proc x 9 MongoNote n p 33 I 0 I b5 I d I b6 I 17 I c2 I 20 I b7 I 29 I b8 I 33 I b9 I 3c I ba I 44 I bb I 4c I bc I 54 I bd I 5c I be I 64 I bf I 6c I c0 I 74 I c1 I 94 I c3 I a6 I c4 I b9 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 param s 48 has correct parameter of embeds_many association M 1 p 2 x 9 for_block t n x 9 __block__ i 185 39 0 49 1 0 56 2 50 3 0 19 0 15 20 0 56 4 50 5 0 49 6 0 44 43 7 4 11 49 8 1 13 7 9 7 10 49 11 2 15 13 7 12 7 13 64 49 11 2 15 13 7 14 7 15 49 11 2 15 13 7 16 1 49 11 2 15 13 7 17 1 49 11 2 15 13 7 18 1 49 11 2 15 13 7 19 1 49 11 2 15 13 7 20 3 49 11 2 15 13 7 21 1 49 11 2 15 13 7 22 1 49 11 2 15 13 7 23 44 43 7 80 49 8 1 13 7 24 3 49 11 2 15 13 7 25 3 49 11 2 15 49 11 2 15 83 26 15 20 0 7 27 49 28 1 49 29 0 49 6 0 7 30 83 26 15 20 0 7 31 49 28 1 49 29 0 49 6 0 45 32 33 83 26 11 I a I 1 I 0 I 0 I -2 p 34 x 5 @user x 12 associations M 1 p 2 x 9 for_block t n x 9 __block__ i 16 57 19 0 15 20 0 7 0 49 1 1 7 2 83 3 11 I 4 I 1 I 1 I 1 n p 4 x 4 name x 2 [] x 11 mongo_notes x 2 == p 3 I 0 I c8 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 a x 4 find M 1 p 2 x 9 for_block t n x 9 __block__ i 22 58 37 19 0 15 37 19 1 15 15 7 0 7 1 35 2 20 0 49 2 1 11 I 5 I 2 I 2 I 2 n p 3 x 16 primary_key_proc x 10 model_proc x 8 include? p 3 I 0 I c9 I 16 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 1 k x 1 v x 6 reject x 6 should x 4 Hash x 16 new_from_literal x 4 name x 11 mongo_notes x 3 []= x 11 pretty_name s 11 Mongo notes x 4 type x 8 has_many x 11 foreign_key x 12 foreign_type x 18 foreign_inverse_of x 2 as x 11 polymorphic x 10 inverse_of x 9 read_only x 11 nested_form x 13 allow_destroy x 11 update_only x 2 == x 16 primary_key_proc x 2 [] x 4 call x 3 _id x 10 model_proc x 9 MongoNote n p 33 I 0 I c8 I d I c9 I 17 I d5 I 20 I ca I 29 I cb I 33 I cc I 3c I cd I 44 I ce I 4c I cf I 54 I d0 I 5c I d1 I 64 I d2 I 6c I d3 I 74 I d4 I 94 I d6 I a6 I d7 I b9 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 param s 78 should raise error when embeds_* is used without accepts_nested_attributes_for M 1 p 2 x 9 for_block t n x 9 __block__ i 125 99 7 0 1 65 49 1 3 13 99 12 7 2 12 7 3 12 65 12 49 4 4 15 49 2 0 15 99 7 5 1 65 49 1 3 13 99 12 7 2 12 7 6 12 65 12 49 4 4 15 49 2 0 15 99 7 7 1 65 49 1 3 13 99 12 7 2 12 7 8 12 65 12 49 4 4 15 49 2 0 15 5 56 9 47 50 10 0 5 45 11 12 7 13 64 47 49 14 2 49 15 1 15 5 56 16 47 50 10 0 5 45 11 17 7 18 64 47 49 14 2 49 15 1 11 I 7 I 0 I 0 I 0 I -2 p 19 x 14 MongoEmbedsOne x 10 open_class x 14 __class_init__ M 1 n n x 14 MongoEmbedsOne i 21 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 11 I 2 I 0 I 0 I 0 n p 6 x 7 Mongoid n x 8 Document x 7 include x 14 mongo_embedded x 10 embeds_one p 5 I 2 I dc I d I dd I 15 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 13 attach_method x 15 MongoEmbedsMany M 1 n n x 15 MongoEmbedsMany i 21 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 11 I 2 I 0 I 0 I 0 n p 6 x 7 Mongoid n x 8 Document x 7 include x 15 mongo_embeddeds x 11 embeds_many p 5 I 2 I e1 I d I e2 I 15 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 13 MongoEmbedded M 1 n n x 13 MongoEmbedded i 29 5 66 5 45 0 1 43 2 47 49 3 1 15 5 7 4 47 49 5 1 15 5 7 6 47 49 5 1 11 I 2 I 0 I 0 I 0 n p 7 x 7 Mongoid n x 8 Document x 7 include x 16 mongo_embeds_one x 11 embedded_in x 17 mongo_embeds_many p 7 I 2 I e6 I d I e7 I 15 I e8 I 1d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 36 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 45 5 6 47 49 7 1 15 8 32 45 5 8 49 3 1 49 9 0 11 I 4 I 0 I 0 I 0 I -2 p 10 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate x 14 MongoEmbedsOne n x 10 initialize n x 12 associations p 3 I 0 I eb I 24 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 lambda x 12 RuntimeError n s 236 Embbeded association without accepts_nested_attributes_for can't be handled by RailsAdmin, because embedded model doesn't have top-level access. Please add `accepts_nested_attributes_for :mongo_embedded' line to `MongoEmbedsOne' model. x 11 raise_error x 6 should M 1 p 2 x 9 for_block t n x 9 __block__ i 36 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 45 5 6 47 49 7 1 15 8 32 45 5 8 49 3 1 49 9 0 11 I 4 I 0 I 0 I 0 I -2 p 10 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate x 15 MongoEmbedsMany n x 10 initialize n x 12 associations p 3 I 0 I ee I 24 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 n s 238 Embbeded association without accepts_nested_attributes_for can't be handled by RailsAdmin, because embedded model doesn't have top-level access. Please add `accepts_nested_attributes_for :mongo_embeddeds' line to `MongoEmbedsMany' model. p 19 I 0 I db I 1b I e0 I 36 I e5 I 51 I eb I 5c I ec I 5f I eb I 67 I ee I 72 I ef I 75 I ee I 7d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 27 I 0 I 6 I a I 42 I 14 I 46 I 1f I 4a I 2a I 4e I 35 I 61 I 40 I 75 I 4b I 79 I 56 I 8c I 61 I a0 I 6c I b4 I 77 I c7 I 82 I da I 8d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 8 describe s 11 #properties M 1 p 2 x 9 for_block t n x 9 __block__ i 21 5 7 0 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 5 1 11 I 4 I 0 I 0 I 0 I -2 p 6 x 3 all M 1 p 2 x 9 for_block t n x 9 __block__ i 35 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 45 5 6 47 49 7 1 15 8 32 45 5 8 49 3 1 38 9 11 I 4 I 0 I 0 I 0 I -2 p 10 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate x 9 FieldTest n x 10 initialize n x 15 @abstract_model p 3 I 0 I f6 I 23 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 37 maps Mongoid column types to RA types M 1 p 2 x 9 for_block t n x 9 __block__ i 1286 39 0 49 1 0 56 2 50 3 0 49 4 0 44 43 5 4 6 49 6 1 13 7 7 7 8 49 9 2 15 13 7 10 7 11 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 2 49 9 2 15 13 7 14 7 15 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 17 49 9 2 15 13 7 10 7 18 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 19 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 20 49 9 2 15 13 7 10 7 21 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 22 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 23 49 9 2 15 13 7 10 7 24 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 25 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 26 49 9 2 15 13 7 10 7 27 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 28 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 29 49 9 2 15 13 7 10 7 30 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 15 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 31 49 9 2 15 13 7 10 7 32 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 33 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 34 49 9 2 15 13 7 10 7 35 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 36 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 37 49 9 2 15 13 7 10 7 38 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 39 49 9 2 15 13 7 16 4 255 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 40 49 9 2 15 13 7 10 7 41 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 42 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 43 49 9 2 15 13 7 10 7 44 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 22 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 45 49 9 2 15 13 7 10 7 46 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 47 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 7 49 9 2 15 13 7 10 7 48 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 39 49 9 2 15 13 7 16 4 255 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 49 49 9 2 15 13 7 10 7 50 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 39 49 9 2 15 13 7 16 4 255 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 51 49 9 2 15 13 7 10 7 52 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 39 49 9 2 15 13 7 16 4 255 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 53 49 9 2 15 13 7 10 7 54 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 19 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 55 49 9 2 15 13 7 10 7 56 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 39 49 9 2 15 13 7 16 4 255 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 57 49 9 2 15 13 7 10 7 58 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 39 49 9 2 15 13 7 16 4 255 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 59 49 9 2 15 13 7 10 7 60 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 19 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 61 49 9 2 15 13 7 10 7 62 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 36 49 9 2 15 13 7 16 1 49 9 2 15 44 43 5 4 6 49 6 1 13 7 7 7 63 49 9 2 15 13 7 10 7 64 64 49 9 2 15 13 7 12 2 49 9 2 15 13 7 13 3 49 9 2 15 13 7 14 7 39 49 9 2 15 13 7 16 4 255 49 9 2 15 35 21 49 65 1 11 I 1a I 0 I 0 I 0 I -2 p 66 x 15 @abstract_model x 10 properties M 1 p 2 x 9 for_block t n x 9 __block__ i 86 57 19 0 15 7 0 64 7 1 64 7 2 64 7 3 64 7 4 64 7 5 64 7 6 64 7 7 64 7 8 64 7 9 64 7 10 64 7 11 64 7 12 64 7 13 64 7 14 64 7 15 64 7 16 64 7 17 64 7 18 64 7 19 64 7 20 64 7 21 64 35 22 20 0 7 22 49 23 1 49 24 0 49 25 1 11 I 18 I 1 I 1 I 1 n p 26 s 3 _id s 5 _type s 11 array_field s 17 big_decimal_field s 13 boolean_field s 20 bson_object_id_field s 10 date_field s 14 datetime_field s 13 default_field s 11 float_field s 10 hash_field s 13 integer_field s 4 name s 12 object_field s 11 range_field s 10 short_text s 12 string_field s 7 subject s 12 symbol_field s 10 text_field s 10 time_field s 5 title x 4 name x 2 [] x 4 to_s x 8 include? p 13 I 0 I fa I 10 I fb I 22 I fc I 3a I fd I 48 I fe I 52 I fa I 56 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 p x 6 select x 6 should x 4 Hash x 16 new_from_literal x 4 name x 3 _id x 3 []= x 11 pretty_name s 2 Id x 9 nullable? x 7 serial? x 4 type x 14 bson_object_id x 6 length x 5 _type s 4 Type x 4 text x 11 array_field s 11 Array field x 10 serialized x 17 big_decimal_field s 17 Big decimal field x 7 decimal x 13 boolean_field s 13 Boolean field x 7 boolean x 20 bson_object_id_field s 20 Bson object id field x 10 date_field s 10 Date field x 4 date x 14 datetime_field s 14 Datetime field x 8 datetime x 13 default_field s 13 Default field x 6 string x 11 float_field s 11 Float field x 5 float x 10 hash_field s 10 Hash field x 13 integer_field s 13 Integer field x 7 integer s 4 Name x 12 object_field s 12 Object field x 10 short_text s 10 Short text x 12 string_field s 12 String field x 7 subject s 7 Subject x 12 symbol_field s 12 Symbol field x 10 text_field s 10 Text field x 10 time_field s 10 Time field x 5 title s 5 Title x 2 =~ p 299 I 0 I fa I d I 104 I 16 I ff I 1f I 100 I 29 I 101 I 31 I 102 I 39 I 103 I 42 I 104 I 49 I 10a I 52 I 105 I 5b I 106 I 65 I 107 I 6d I 108 I 75 I 109 I 7e I 10a I 85 I 110 I 8e I 10b I 97 I 10c I a1 I 10d I a9 I 10e I b1 I 10f I ba I 110 I c1 I 116 I ca I 111 I d3 I 112 I dd I 113 I e5 I 114 I ed I 115 I f6 I 116 I fd I 11c I 106 I 117 I 10f I 118 I 119 I 119 I 121 I 11a I 129 I 11b I 132 I 11c I 139 I 122 I 142 I 11d I 14b I 11e I 155 I 11f I 15d I 120 I 165 I 121 I 16e I 122 I 175 I 128 I 17e I 123 I 187 I 124 I 191 I 125 I 199 I 126 I 1a1 I 127 I 1aa I 128 I 1b1 I 12e I 1ba I 129 I 1c3 I 12a I 1cd I 12b I 1d5 I 12c I 1dd I 12d I 1e6 I 12e I 1ed I 134 I 1f6 I 12f I 1ff I 130 I 209 I 131 I 211 I 132 I 219 I 133 I 222 I 134 I 22a I 13a I 233 I 135 I 23c I 136 I 246 I 137 I 24e I 138 I 256 I 139 I 25f I 13a I 266 I 140 I 26f I 13b I 278 I 13c I 282 I 13d I 28a I 13e I 292 I 13f I 29b I 140 I 2a2 I 146 I 2ab I 141 I 2b4 I 142 I 2be I 143 I 2c6 I 144 I 2ce I 145 I 2d7 I 146 I 2de I 14c I 2e7 I 147 I 2f0 I 148 I 2fa I 149 I 302 I 14a I 30a I 14b I 313 I 14c I 31b I 152 I 324 I 14d I 32d I 14e I 337 I 14f I 33f I 150 I 347 I 151 I 350 I 152 I 358 I 158 I 361 I 153 I 36a I 154 I 374 I 155 I 37c I 156 I 384 I 157 I 38d I 158 I 395 I 15e I 39e I 159 I 3a7 I 15a I 3b1 I 15b I 3b9 I 15c I 3c1 I 15d I 3ca I 15e I 3d1 I 164 I 3da I 15f I 3e3 I 160 I 3ed I 161 I 3f5 I 162 I 3fd I 163 I 406 I 164 I 40e I 16a I 417 I 165 I 420 I 166 I 42a I 167 I 432 I 168 I 43a I 169 I 443 I 16a I 44b I 170 I 454 I 16b I 45d I 16c I 467 I 16d I 46f I 16e I 477 I 16f I 480 I 170 I 487 I 176 I 490 I 171 I 499 I 172 I 4a3 I 173 I 4ab I 174 I 4b3 I 175 I 4bc I 176 I 4c3 I 17c I 4cc I 177 I 4d5 I 178 I 4df I 179 I 4e7 I 17a I 4ef I 17b I 4f8 I 17c I 502 I 17d I 506 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it p 5 I 0 I f5 I a I f9 I 15 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 18 data access method M 1 p 2 x 9 for_block t n x 9 __block__ i 85 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 15 5 7 7 64 56 8 47 50 4 1 15 5 7 9 64 56 10 47 50 4 1 15 5 7 11 64 56 12 47 50 4 1 15 5 7 13 64 56 14 47 50 4 1 15 5 7 15 64 56 16 47 50 17 1 11 I 4 I 0 I 0 I 0 I -2 p 18 M 1 p 2 x 9 for_block t n x 9 __block__ i 48 45 0 1 7 2 4 3 49 3 2 38 4 15 45 5 6 43 7 13 71 8 47 9 39 47 49 9 0 13 7 10 64 47 49 11 1 15 8 45 7 10 64 49 8 1 38 12 11 I 4 I 0 I 0 I 0 I -2 p 13 x 11 FactoryGirl n x 6 player x 11 create_list x 8 @players x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate s 6 Player x 10 initialize x 15 @abstract_model p 5 I 0 I 183 I d I 184 I 30 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 39 #new returns instance of AbstractObject M 1 p 2 x 9 for_block t n x 9 __block__ i 38 39 0 13 71 1 47 9 20 47 49 2 0 13 47 49 3 0 15 8 23 49 1 0 49 4 0 5 45 5 6 47 49 7 1 49 8 1 11 I 4 I 0 I 0 I 0 I -2 p 9 x 15 @abstract_model x 3 new x 8 allocate x 10 initialize x 6 object x 6 Player n x 14 be_instance_of x 6 should p 3 I 0 I 188 I 26 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 39 #get returns instance of AbstractObject M 1 p 2 x 9 for_block t n x 9 __block__ i 30 39 0 39 1 49 2 0 49 3 0 49 4 0 49 5 1 49 6 0 49 7 0 39 1 49 2 0 83 8 11 I 3 I 0 I 0 I 0 I -2 p 9 x 15 @abstract_model x 8 @players x 5 first x 2 id x 4 to_s x 3 get x 6 object x 6 should x 2 == p 3 I 0 I 18c I 1e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 39 #get returns nil when id does not exist M 1 p 2 x 9 for_block t n x 9 __block__ i 15 39 0 7 1 64 49 2 1 5 48 3 49 4 1 11 I 3 I 0 I 0 I 0 I -2 p 5 x 15 @abstract_model s 24 4f4f0824dcf2315093000000 x 3 get x 6 be_nil x 6 should p 3 I 0 I 190 I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 25 #first returns first item M 1 p 2 x 9 for_block t n x 9 __block__ i 16 39 0 49 1 0 49 2 0 39 3 49 1 0 83 4 11 I 3 I 0 I 0 I 0 I -2 p 5 x 15 @abstract_model x 5 first x 6 should x 8 @players x 2 == p 3 I 0 I 194 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 29 #count returns count of items M 1 p 2 x 9 for_block t n x 9 __block__ i 16 39 0 49 1 0 49 2 0 39 3 49 1 0 83 4 11 I 3 I 0 I 0 I 0 I -2 p 5 x 15 @abstract_model x 5 count x 6 should x 8 @players x 2 == p 3 I 0 I 198 I 10 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 32 #destroy destroys multiple items M 1 p 2 x 9 for_block t n x 9 __block__ i 44 39 0 39 1 44 43 2 78 79 49 3 2 49 4 1 49 5 1 15 45 6 7 49 8 0 49 9 0 39 1 44 43 2 80 80 49 3 2 49 4 1 83 10 11 I 6 I 0 I 0 I 0 I -2 p 11 x 15 @abstract_model x 8 @players x 5 Range x 3 new x 2 [] x 7 destroy x 6 Player n x 3 all x 6 should x 2 == p 5 I 0 I 19c I 13 I 19d I 2c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 4 #all M 1 p 2 x 9 for_block t n x 9 __block__ i 99 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 15 5 7 5 64 56 6 47 50 2 1 15 5 7 7 64 56 8 47 50 2 1 15 5 7 9 64 56 10 47 50 2 1 15 5 7 11 64 56 12 47 50 2 1 15 5 7 13 64 56 14 47 50 2 1 15 5 7 15 64 56 16 47 50 2 1 15 5 7 17 64 56 18 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 19 s 21 works without options M 1 p 2 x 9 for_block t n x 9 __block__ i 17 39 0 49 1 0 49 2 0 49 3 0 39 4 49 5 1 11 I 3 I 0 I 0 I 0 I -2 p 6 x 15 @abstract_model x 3 all x 4 to_a x 6 should x 8 @players x 2 =~ p 3 I 0 I 1a2 I 11 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 22 supports eager loading M 1 p 2 x 9 for_block t n x 9 __block__ i 40 39 0 44 43 1 79 49 2 1 13 7 3 7 4 49 5 2 15 49 6 1 49 7 0 56 8 50 9 0 49 10 0 7 11 64 35 1 83 12 11 I 6 I 0 I 0 I 0 I -2 p 13 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 7 include x 4 team x 3 []= x 3 all x 10 inclusions M 1 p 2 x 9 for_block t n x 9 __block__ i 10 57 19 0 15 20 0 49 0 0 11 I 3 I 1 I 1 I 1 n p 1 x 10 class_name p 3 I 0 I 1a6 I a x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 i x 3 map x 6 should s 4 Team x 2 == p 3 I 0 I 1a6 I 28 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 17 supports limiting M 1 p 2 x 9 for_block t n x 9 __block__ i 33 39 0 44 43 1 79 49 2 1 13 7 3 80 49 4 2 15 49 5 1 49 6 0 49 7 0 49 8 0 80 83 9 11 I 6 I 0 I 0 I 0 I -2 p 10 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 5 limit x 3 []= x 3 all x 4 to_a x 5 count x 6 should x 2 == p 3 I 0 I 1aa I 21 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 30 supports retrieval by bulk_ids M 1 p 2 x 9 for_block t n x 9 __block__ i 60 39 0 44 43 1 79 49 2 1 13 7 3 39 4 44 43 5 78 79 49 6 2 49 7 1 56 8 50 9 0 49 10 2 15 49 11 1 49 12 0 49 13 0 39 4 44 43 5 78 79 49 6 2 49 7 1 49 14 1 11 I 9 I 0 I 0 I 0 I -2 p 15 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 8 bulk_ids x 8 @players x 5 Range x 3 new x 2 [] M 1 p 2 x 9 for_block t n x 9 __block__ i 13 57 19 0 15 20 0 49 0 0 49 1 0 11 I 3 I 1 I 1 I 1 n p 2 x 2 id x 4 to_s p 3 I 0 I 1ae I d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 6 player x 3 map x 3 []= x 3 all x 4 to_a x 6 should x 2 =~ p 3 I 0 I 1ae I 3c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 19 supports pagination M 1 p 2 x 9 for_block t n x 9 __block__ i 61 39 0 44 43 1 4 3 49 2 1 13 7 3 7 4 64 49 5 2 15 13 7 6 80 49 5 2 15 13 7 7 79 49 5 2 15 49 8 1 49 9 0 49 10 0 39 11 44 43 12 79 79 49 13 2 49 14 1 83 15 11 I 6 I 0 I 0 I 0 I -2 p 16 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 4 sort s 11 players._id x 3 []= x 4 page x 3 per x 3 all x 4 to_a x 6 should x 8 @players x 5 Range x 3 new x 2 [] x 2 == p 3 I 0 I 1b2 I 3d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 17 supports ordering M 1 p 2 x 9 for_block t n x 9 __block__ i 91 39 0 44 43 1 80 49 2 1 13 7 3 7 4 64 49 5 2 15 13 7 6 2 49 5 2 15 49 7 1 49 8 0 49 9 0 39 10 49 3 0 83 11 15 39 0 44 43 1 80 49 2 1 13 7 3 7 4 64 49 5 2 15 13 7 6 3 49 5 2 15 49 7 1 49 8 0 49 9 0 39 10 49 3 0 49 12 0 83 11 11 I 6 I 0 I 0 I 0 I -2 p 13 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 4 sort s 11 players._id x 3 []= x 12 sort_reverse x 3 all x 4 to_a x 6 should x 8 @players x 2 == x 7 reverse p 5 I 0 I 1b9 I 2c I 1ba I 5b x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 17 supports querying M 1 p 2 x 9 for_block t n x 9 __block__ i 47 39 0 44 43 1 79 49 2 1 13 7 3 39 4 79 49 5 1 49 6 0 49 7 2 15 49 8 1 49 9 0 39 4 44 43 10 79 79 49 11 2 49 5 1 83 12 11 I 7 I 0 I 0 I 0 I -2 p 13 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 5 query x 8 @players x 2 [] x 4 name x 3 []= x 3 all x 6 should x 5 Range x 3 new x 2 == p 3 I 0 I 1be I 2f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 18 supports filtering M 1 p 2 x 9 for_block t n x 9 __block__ i 101 39 0 44 43 1 79 49 2 1 13 7 3 44 43 1 79 49 2 1 13 7 4 64 44 43 1 79 49 2 1 13 7 5 64 44 43 1 80 49 2 1 13 7 6 7 7 64 49 8 2 15 13 7 9 39 10 79 49 11 1 49 12 0 49 8 2 15 49 8 2 15 49 8 2 15 49 8 2 15 49 13 1 49 14 0 39 10 44 43 15 79 79 49 16 2 49 11 1 83 17 11 I 10 I 0 I 0 I 0 I -2 p 18 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 7 filters s 4 name s 4 0000 x 1 o s 2 is x 3 []= x 1 v x 8 @players x 2 [] x 4 name x 3 all x 6 should x 5 Range x 3 new x 2 == p 3 I 0 I 1c2 I 65 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 44 ignores non-existent field name on filtering M 1 p 2 x 9 for_block t n x 9 __block__ i 14 5 56 0 47 50 1 0 5 48 2 49 3 1 11 I 3 I 0 I 0 I 0 I -2 p 4 M 1 p 2 x 9 for_block t n x 9 __block__ i 83 39 0 44 43 1 79 49 2 1 13 7 3 44 43 1 79 49 2 1 13 7 4 64 44 43 1 79 49 2 1 13 7 5 64 44 43 1 80 49 2 1 13 7 6 7 7 64 49 8 2 15 13 7 9 39 10 79 49 11 1 49 12 0 49 8 2 15 49 8 2 15 49 8 2 15 49 8 2 15 49 13 1 11 I 10 I 0 I 0 I 0 I -2 p 14 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 7 filters s 5 dummy s 4 0000 x 1 o s 2 is x 3 []= x 1 v x 8 @players x 2 [] x 4 name x 3 all p 3 I 0 I 1c6 I 53 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 lambda x 11 raise_error x 10 should_not p 3 I 0 I 1c6 I e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 19 I 0 I 1a1 I b I 1a5 I 16 I 1a9 I 21 I 1ad I 2c I 1b1 I 37 I 1b8 I 42 I 1bd I 4d I 1c1 I 58 I 1c5 I 63 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 8 describe p 17 I 0 I 182 I 8 I 187 I 13 I 18b I 1e I 18f I 29 I 193 I 34 I 197 I 3f I 19b I 4a I 1a0 I 55 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 24 searching on association M 1 p 2 x 9 for_block t n x 9 __block__ i 33 5 7 0 64 56 1 47 50 2 1 15 5 7 3 64 56 4 47 50 2 1 15 5 7 5 64 56 6 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 7 s 24 whose type is belongs_to M 1 p 2 x 9 for_block t n x 9 __block__ i 30 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 7 M 1 p 2 x 9 for_block t n x 9 __block__ i 103 45 0 1 45 2 3 56 4 50 5 1 15 45 6 7 7 8 4 3 49 9 2 38 10 15 45 6 11 7 12 44 43 13 79 49 14 1 13 7 15 7 16 64 49 17 2 15 49 18 2 38 19 15 39 19 49 20 0 39 10 79 49 21 1 49 22 1 15 45 0 23 43 24 13 71 25 47 9 94 47 49 26 0 13 7 27 64 47 49 28 1 15 8 100 7 27 64 49 25 1 38 29 11 I 7 I 0 I 0 I 0 I -2 p 30 x 10 RailsAdmin n x 6 Player n M 1 p 2 x 9 for_block t n x 9 __block__ i 10 5 7 0 56 1 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 3 x 4 team M 1 p 2 x 9 for_block t n x 9 __block__ i 7 5 2 47 49 0 1 11 I 3 I 0 I 0 I 0 I -2 p 1 x 9 queryable p 3 I 0 I 1d0 I 7 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 5 field p 3 I 0 I 1cf I a x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 config x 11 FactoryGirl n x 6 player x 11 create_list x 8 @players n x 4 team x 4 Hash x 16 new_from_literal x 4 name s 6 foobar x 3 []= x 6 create x 5 @team x 7 players x 2 [] x 2 << n x 13 AbstractModel x 3 new x 8 allocate s 6 Player x 10 initialize x 15 @abstract_model p 11 I 0 I 1ce I c I 1d3 I 19 I 1d4 I 35 I 1d5 I 44 I 1d6 I 67 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 17 supports querying M 1 p 2 x 9 for_block t n x 9 __block__ i 44 39 0 44 43 1 79 49 2 1 13 7 3 7 4 64 49 5 2 15 49 6 1 49 7 0 49 8 0 39 9 44 43 10 79 79 49 11 2 49 12 1 83 13 11 I 6 I 0 I 0 I 0 I -2 p 14 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 5 query s 6 foobar x 3 []= x 3 all x 4 to_a x 6 should x 8 @players x 5 Range x 3 new x 2 [] x 2 == p 3 I 0 I 1da I 2c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 18 supports filtering M 1 p 2 x 9 for_block t n x 9 __block__ i 98 39 0 44 43 1 79 49 2 1 13 7 3 44 43 1 79 49 2 1 13 7 4 64 44 43 1 79 49 2 1 13 7 5 64 44 43 1 80 49 2 1 13 7 6 7 7 64 49 8 2 15 13 7 9 7 10 64 49 8 2 15 49 8 2 15 49 8 2 15 49 8 2 15 49 11 1 49 12 0 49 13 0 39 14 44 43 15 79 79 49 16 2 49 17 1 83 18 11 I f I 0 I 0 I 0 I -2 p 19 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 7 filters s 4 team s 4 0000 x 1 o s 2 is x 3 []= x 1 v s 6 foobar x 3 all x 4 to_a x 6 should x 8 @players x 5 Range x 3 new x 2 [] x 2 == p 3 I 0 I 1de I 62 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 7 I 0 I 1cd I 8 I 1d9 I 13 I 1dd I 1e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 8 describe s 22 whose type is has_many M 1 p 2 x 9 for_block t n x 9 __block__ i 30 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 7 M 1 p 2 x 9 for_block t n x 9 __block__ i 140 45 0 1 45 2 3 56 4 50 5 1 15 45 6 7 7 8 4 3 49 9 2 38 10 15 44 43 11 79 49 12 1 13 7 8 39 10 79 49 13 1 49 14 2 15 44 43 11 80 49 12 1 13 7 8 39 10 79 49 13 1 49 14 2 15 13 7 15 7 16 64 49 14 2 15 44 43 11 79 49 12 1 13 7 8 39 10 80 49 13 1 49 14 2 15 35 3 56 17 50 18 0 38 19 15 45 0 20 43 21 13 71 22 47 9 131 47 49 23 0 13 7 24 64 47 49 25 1 15 8 137 7 24 64 49 22 1 38 26 11 I 8 I 0 I 0 I 0 I -2 p 27 x 10 RailsAdmin n x 4 Team n M 1 p 2 x 9 for_block t n x 9 __block__ i 10 5 7 0 56 1 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 3 x 7 players M 1 p 2 x 9 for_block t n x 9 __block__ i 15 5 2 47 49 0 1 15 5 7 1 47 49 2 1 11 I 3 I 0 I 0 I 0 I -2 p 3 x 9 queryable x 3 all x 10 searchable p 5 I 0 I 1e6 I 7 I 1e7 I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 5 field p 3 I 0 I 1e5 I a x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 config x 11 FactoryGirl n x 4 team x 11 create_list x 6 @teams x 4 Hash x 16 new_from_literal x 2 [] x 3 []= x 4 name s 6 foobar M 1 p 2 x 9 for_block t n x 9 __block__ i 15 57 19 0 15 45 0 1 7 2 20 0 49 3 2 11 I 5 I 1 I 1 I 1 n p 4 x 11 FactoryGirl n x 6 player x 6 create p 5 I 0 I 1eb I 1 I 1ed I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 h x 3 map x 8 @players n x 13 AbstractModel x 3 new x 8 allocate s 4 Team x 10 initialize x 15 @abstract_model p 15 I 0 I 1e4 I c I 1ea I 19 I 1eb I 2d I 1ec I 4b I 1ed I 61 I 1eb I 69 I 1ee I 8c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 17 supports querying M 1 p 2 x 9 for_block t n x 9 __block__ i 44 39 0 44 43 1 79 49 2 1 13 7 3 7 4 64 49 5 2 15 49 6 1 49 7 0 49 8 0 39 9 44 43 10 79 79 49 11 2 49 12 1 83 13 11 I 6 I 0 I 0 I 0 I -2 p 14 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 5 query s 6 foobar x 3 []= x 3 all x 4 to_a x 6 should x 6 @teams x 5 Range x 3 new x 2 [] x 2 == p 3 I 0 I 1f2 I 2c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 18 supports filtering M 1 p 2 x 9 for_block t n x 9 __block__ i 98 39 0 44 43 1 79 49 2 1 13 7 3 44 43 1 79 49 2 1 13 7 4 64 44 43 1 79 49 2 1 13 7 5 64 44 43 1 80 49 2 1 13 7 6 7 7 64 49 8 2 15 13 7 9 7 10 64 49 8 2 15 49 8 2 15 49 8 2 15 49 8 2 15 49 11 1 49 12 0 49 13 0 39 14 44 43 15 79 79 49 16 2 49 17 1 83 18 11 I f I 0 I 0 I 0 I -2 p 19 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 7 filters s 7 players s 4 0000 x 1 o s 2 is x 3 []= x 1 v s 6 foobar x 3 all x 4 to_a x 6 should x 6 @teams x 5 Range x 3 new x 2 [] x 2 == p 3 I 0 I 1f6 I 62 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 7 I 0 I 1e3 I 8 I 1f1 I 13 I 1f5 I 1e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 37 whose type is has_and_belongs_to_many M 1 p 2 x 9 for_block t n x 9 __block__ i 30 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 7 M 1 p 2 x 9 for_block t n x 9 __block__ i 148 45 0 1 45 2 3 56 4 50 5 1 15 45 6 7 7 8 4 3 49 9 2 38 10 15 44 43 11 78 49 12 1 44 43 11 79 49 12 1 13 7 13 7 14 64 49 15 2 15 44 43 11 78 49 12 1 35 3 56 16 50 17 0 38 18 15 39 10 79 49 19 1 39 18 78 49 19 1 39 18 79 49 19 1 35 2 13 18 2 49 20 1 15 15 39 10 80 49 19 1 49 21 0 39 18 80 49 19 1 49 22 1 15 45 0 23 43 24 13 71 25 47 9 139 47 49 26 0 13 7 27 64 47 49 28 1 15 8 145 7 27 64 49 25 1 38 29 11 I 6 I 0 I 0 I 0 I -2 p 30 x 10 RailsAdmin n x 4 Team n M 1 p 2 x 9 for_block t n x 9 __block__ i 10 5 7 0 56 1 47 50 2 1 11 I 4 I 0 I 0 I 0 I -2 p 3 x 4 fans M 1 p 2 x 9 for_block t n x 9 __block__ i 15 5 2 47 49 0 1 15 5 7 1 47 49 2 1 11 I 3 I 0 I 0 I 0 I -2 p 3 x 9 queryable x 3 all x 10 searchable p 5 I 0 I 1fe I 7 I 1ff I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 5 field p 3 I 0 I 1fd I a x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 config x 11 FactoryGirl n x 4 team x 11 create_list x 6 @teams x 4 Hash x 16 new_from_literal x 4 name s 6 foobar x 3 []= M 1 p 2 x 9 for_block t n x 9 __block__ i 15 57 19 0 15 45 0 1 7 2 20 0 49 3 2 11 I 5 I 1 I 1 I 1 n p 4 x 11 FactoryGirl n x 3 fan x 6 create p 3 I 0 I 203 I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 h x 3 map x 5 @fans x 2 [] x 5 fans= x 4 fans x 2 << n x 13 AbstractModel x 3 new x 8 allocate s 4 Team x 10 initialize x 15 @abstract_model p 13 I 0 I 1fc I c I 202 I 19 I 203 I 42 I 204 I 5e I 205 I 71 I 206 I 94 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 17 supports querying M 1 p 2 x 9 for_block t n x 9 __block__ i 44 39 0 44 43 1 79 49 2 1 13 7 3 7 4 64 49 5 2 15 49 6 1 49 7 0 49 8 0 39 9 44 43 10 79 79 49 11 2 49 12 1 83 13 11 I 6 I 0 I 0 I 0 I -2 p 14 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 5 query s 6 foobar x 3 []= x 3 all x 4 to_a x 6 should x 6 @teams x 5 Range x 3 new x 2 [] x 2 == p 3 I 0 I 20a I 2c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 18 supports filtering M 1 p 2 x 9 for_block t n x 9 __block__ i 98 39 0 44 43 1 79 49 2 1 13 7 3 44 43 1 79 49 2 1 13 7 4 64 44 43 1 79 49 2 1 13 7 5 64 44 43 1 80 49 2 1 13 7 6 7 7 64 49 8 2 15 13 7 9 7 10 64 49 8 2 15 49 8 2 15 49 8 2 15 49 8 2 15 49 11 1 49 12 0 49 13 0 39 14 44 43 15 79 79 49 16 2 49 17 1 83 18 11 I f I 0 I 0 I 0 I -2 p 19 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 7 filters s 4 fans s 4 0000 x 1 o s 2 is x 3 []= x 1 v s 6 foobar x 3 all x 4 to_a x 6 should x 6 @teams x 5 Range x 3 new x 2 [] x 2 == p 3 I 0 I 20e I 62 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 7 I 0 I 1fb I 8 I 209 I 13 I 20d I 1e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 7 I 0 I 1cc I b I 1e2 I 16 I 1fa I 21 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 17 #query_conditions M 1 p 2 x 9 for_block t n x 9 __block__ i 19 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 5 M 1 p 2 x 9 for_block t n x 9 __block__ i 86 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 7 5 64 47 49 6 1 15 8 32 7 5 64 49 3 1 38 7 15 44 43 8 78 49 9 1 44 43 8 79 49 9 1 13 7 10 7 11 64 49 12 2 15 44 43 8 79 49 9 1 13 7 13 7 14 64 49 12 2 15 35 3 56 15 50 16 0 38 17 11 I 7 I 0 I 0 I 0 I -2 p 18 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate s 6 Player x 10 initialize x 15 @abstract_model x 4 Hash x 16 new_from_literal x 4 name s 9 Many foos x 3 []= x 8 position s 12 foo shortage M 1 p 2 x 9 for_block t n x 9 __block__ i 15 57 19 0 15 45 0 1 7 2 20 0 49 3 2 11 I 5 I 1 I 1 I 1 n p 4 x 11 FactoryGirl n x 6 player x 6 create p 5 I 0 I 216 I 1 I 217 I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 h x 3 map x 8 @players p 5 I 0 I 215 I 23 I 216 I 56 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 20 makes conrrect query M 1 p 2 x 9 for_block t n x 9 __block__ i 45 39 0 44 43 1 79 49 2 1 13 7 3 7 4 64 49 5 2 15 49 6 1 49 7 0 49 8 0 39 9 44 43 10 79 80 49 11 2 49 12 1 49 13 1 11 I 6 I 0 I 0 I 0 I -2 p 14 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 5 query s 3 foo x 3 []= x 3 all x 4 to_a x 6 should x 8 @players x 5 Range x 3 new x 2 [] x 2 =~ p 3 I 0 I 21b I 2d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it p 5 I 0 I 214 I 8 I 21a I 13 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 18 #filter_conditions M 1 p 2 x 9 for_block t n x 9 __block__ i 19 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 5 M 1 p 2 x 9 for_block t n x 9 __block__ i 139 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 7 5 64 47 49 6 1 15 8 32 7 5 64 49 3 1 38 7 15 45 8 9 7 10 44 43 11 79 49 12 1 13 7 13 7 14 64 49 15 2 15 49 16 2 38 17 15 44 43 11 78 49 12 1 44 43 11 79 49 12 1 13 7 10 39 17 49 15 2 15 44 43 11 80 49 12 1 13 7 13 7 18 64 49 15 2 15 13 7 10 39 17 49 15 2 15 44 43 11 79 49 12 1 13 7 13 7 19 64 49 15 2 15 35 4 56 20 50 21 0 38 22 11 I 8 I 0 I 0 I 0 I -2 p 23 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate s 6 Player x 10 initialize x 15 @abstract_model x 11 FactoryGirl n x 4 team x 4 Hash x 16 new_from_literal x 4 name s 11 king of bar x 3 []= x 6 create x 5 @team s 9 Many foos s 9 Great foo M 1 p 2 x 9 for_block t n x 9 __block__ i 15 57 19 0 15 45 0 1 7 2 20 0 49 3 2 11 I 5 I 1 I 1 I 1 n p 4 x 11 FactoryGirl n x 6 player x 6 create p 5 I 0 I 223 I 1 I 224 I f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 1 h x 3 map x 8 @players p 7 I 0 I 221 I 23 I 222 I 3f I 223 I 8b x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 20 makes conrrect query M 1 p 2 x 9 for_block t n x 9 __block__ i 140 39 0 44 43 1 79 49 2 1 13 7 3 44 43 1 80 49 2 1 13 7 4 64 44 43 1 79 49 2 1 13 7 5 64 44 43 1 80 49 2 1 13 7 6 7 7 64 49 8 2 15 13 7 9 7 10 64 49 8 2 15 49 8 2 15 49 8 2 15 13 7 11 64 44 43 1 79 49 2 1 13 7 12 64 44 43 1 80 49 2 1 13 7 6 7 7 64 49 8 2 15 13 7 9 7 13 64 49 8 2 15 49 8 2 15 49 8 2 15 49 8 2 15 49 14 1 49 15 0 39 16 80 49 17 1 35 1 83 18 11 I f I 0 I 0 I 0 I -2 p 19 x 15 @abstract_model x 4 Hash x 16 new_from_literal x 7 filters s 4 name s 4 0000 x 1 o s 4 like x 3 []= x 1 v s 3 foo s 4 team s 4 0001 s 3 bar x 3 all x 6 should x 8 @players x 2 [] x 2 == p 17 I 0 I 228 I 2 I 22a I a I 228 I c I 22a I 14 I 229 I 46 I 22a I 7b I 228 I 81 I 22b I 8c x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it p 5 I 0 I 220 I 8 I 227 I 13 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 16 #build_statement M 1 p 2 x 9 for_block t n x 9 __block__ i 151 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 15 5 7 7 64 56 8 47 50 4 1 15 5 7 9 64 56 10 47 50 4 1 15 5 7 11 64 56 12 47 50 4 1 15 5 7 13 64 56 14 47 50 4 1 15 5 7 15 64 56 16 47 50 4 1 15 5 7 17 64 56 18 47 50 4 1 15 5 7 19 64 56 20 47 50 4 1 15 5 7 21 64 56 22 47 50 4 1 15 5 7 23 64 56 24 47 50 4 1 15 5 7 25 64 56 26 47 50 4 1 15 5 7 27 64 56 28 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 29 M 1 p 2 x 9 for_block t n x 9 __block__ i 35 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 7 5 64 47 49 6 1 15 8 32 7 5 64 49 3 1 38 7 11 I 4 I 0 I 0 I 0 I -2 p 8 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate s 9 FieldTest x 10 initialize x 15 @abstract_model p 3 I 0 I 231 I 23 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 36 ignores '_discard' operator or value M 1 p 2 x 9 for_block t n x 9 __block__ i 24 7 0 64 7 1 64 35 2 7 1 64 7 0 64 35 2 35 2 56 2 50 3 0 11 I 4 I 0 I 0 I 0 I -2 p 4 s 8 _discard s 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 32 58 37 19 0 15 37 19 1 15 15 39 0 7 1 7 2 7 3 20 0 20 1 49 4 5 5 48 5 49 6 1 11 I 9 I 2 I 2 I 2 n p 7 x 15 @abstract_model x 15 build_statement x 4 name x 6 string x 4 send x 6 be_nil x 6 should p 5 I 0 I 235 I a I 236 I 20 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 5 value x 8 operator x 4 each p 3 I 0 I 235 I 18 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 26 supports '_blank' operator M 1 p 2 x 9 for_block t n x 9 __block__ i 24 7 0 64 7 1 64 35 2 7 1 64 7 0 64 35 2 35 2 56 2 50 3 0 11 I 4 I 0 I 0 I 0 I -2 p 4 s 6 _blank s 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 66 58 37 19 0 15 37 19 1 15 15 39 0 7 1 7 2 7 3 20 0 20 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 44 43 6 79 49 7 1 13 7 8 64 1 7 9 64 35 2 49 10 2 15 49 10 2 15 83 11 11 I c I 2 I 2 I 2 n p 12 x 15 @abstract_model x 15 build_statement x 4 name x 6 string x 4 send x 6 should x 4 Hash x 16 new_from_literal s 3 $in s 0 x 3 []= x 2 == p 5 I 0 I 23b I a I 23c I 42 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 5 value x 8 operator x 4 each p 3 I 0 I 23b I 18 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 28 supports '_present' operator M 1 p 2 x 9 for_block t n x 9 __block__ i 24 7 0 64 7 1 64 35 2 7 1 64 7 0 64 35 2 35 2 56 2 50 3 0 11 I 4 I 0 I 0 I 0 I -2 p 4 s 8 _present s 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 66 58 37 19 0 15 37 19 1 15 15 39 0 7 1 7 2 7 3 20 0 20 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 44 43 6 79 49 7 1 13 7 8 64 1 7 9 64 35 2 49 10 2 15 49 10 2 15 83 11 11 I c I 2 I 2 I 2 n p 12 x 15 @abstract_model x 15 build_statement x 4 name x 6 string x 4 send x 6 should x 4 Hash x 16 new_from_literal s 4 $nin s 0 x 3 []= x 2 == p 5 I 0 I 241 I a I 242 I 42 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 5 value x 8 operator x 4 each p 3 I 0 I 241 I 18 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 25 supports '_null' operator M 1 p 2 x 9 for_block t n x 9 __block__ i 24 7 0 64 7 1 64 35 2 7 1 64 7 0 64 35 2 35 2 56 2 50 3 0 11 I 4 I 0 I 0 I 0 I -2 p 4 s 5 _null s 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 46 58 37 19 0 15 37 19 1 15 15 39 0 7 1 7 2 7 3 20 0 20 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 1 49 8 2 15 83 9 11 I 9 I 2 I 2 I 2 n p 10 x 15 @abstract_model x 15 build_statement x 4 name x 6 string x 4 send x 6 should x 4 Hash x 16 new_from_literal x 3 []= x 2 == p 5 I 0 I 247 I a I 248 I 2e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 5 value x 8 operator x 4 each p 3 I 0 I 247 I 18 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 29 supports '_not_null' operator M 1 p 2 x 9 for_block t n x 9 __block__ i 24 7 0 64 7 1 64 35 2 7 1 64 7 0 64 35 2 35 2 56 2 50 3 0 11 I 4 I 0 I 0 I 0 I -2 p 4 s 9 _not_null s 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 61 58 37 19 0 15 37 19 1 15 15 39 0 7 1 7 2 7 3 20 0 20 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 44 43 6 79 49 7 1 13 7 8 64 1 49 9 2 15 49 9 2 15 83 10 11 I b I 2 I 2 I 2 n p 11 x 15 @abstract_model x 15 build_statement x 4 name x 6 string x 4 send x 6 should x 4 Hash x 16 new_from_literal s 3 $ne x 3 []= x 2 == p 5 I 0 I 24d I a I 24e I 3d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 5 value x 8 operator x 4 each p 3 I 0 I 24d I 18 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 26 supports '_empty' operator M 1 p 2 x 9 for_block t n x 9 __block__ i 24 7 0 64 7 1 64 35 2 7 1 64 7 0 64 35 2 35 2 56 2 50 3 0 11 I 4 I 0 I 0 I 0 I -2 p 4 s 6 _empty s 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 48 58 37 19 0 15 37 19 1 15 15 39 0 7 1 7 2 7 3 20 0 20 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 7 8 64 49 9 2 15 83 10 11 I 9 I 2 I 2 I 2 n p 11 x 15 @abstract_model x 15 build_statement x 4 name x 6 string x 4 send x 6 should x 4 Hash x 16 new_from_literal s 0 x 3 []= x 2 == p 5 I 0 I 253 I a I 254 I 30 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 5 value x 8 operator x 4 each p 3 I 0 I 253 I 18 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 30 supports '_not_empty' operator M 1 p 2 x 9 for_block t n x 9 __block__ i 24 7 0 64 7 1 64 35 2 7 1 64 7 0 64 35 2 35 2 56 2 50 3 0 11 I 4 I 0 I 0 I 0 I -2 p 4 s 10 _not_empty s 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 63 58 37 19 0 15 37 19 1 15 15 39 0 7 1 7 2 7 3 20 0 20 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 44 43 6 79 49 7 1 13 7 8 64 7 9 64 49 10 2 15 49 10 2 15 83 11 11 I b I 2 I 2 I 2 n p 12 x 15 @abstract_model x 15 build_statement x 4 name x 6 string x 4 send x 6 should x 4 Hash x 16 new_from_literal s 3 $ne s 0 x 3 []= x 2 == p 5 I 0 I 259 I a I 25a I 3f x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 2 x 5 value x 8 operator x 4 each p 3 I 0 I 259 I 18 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 27 supports boolean type query M 1 p 2 x 9 for_block t n x 9 __block__ i 56 7 0 64 7 1 64 7 2 64 35 3 56 3 50 4 0 15 7 5 64 7 6 64 7 7 64 35 3 56 8 50 4 0 15 39 9 7 10 7 11 7 12 7 13 64 1 49 14 5 5 48 15 49 16 1 11 I 7 I 0 I 0 I 0 I -2 p 17 s 5 false s 1 f s 1 0 M 1 p 2 x 9 for_block t n x 9 __block__ i 39 57 19 0 15 39 0 7 1 7 2 7 3 20 0 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 3 49 8 2 15 83 9 11 I 8 I 1 I 1 I 1 n p 10 x 15 @abstract_model x 15 build_statement x 5 field x 7 boolean x 4 send x 6 should x 4 Hash x 16 new_from_literal x 3 []= x 2 == p 5 I 0 I 25f I 4 I 260 I 27 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 value x 4 each s 4 true s 1 t s 1 1 M 1 p 2 x 9 for_block t n x 9 __block__ i 39 57 19 0 15 39 0 7 1 7 2 7 3 20 0 1 49 4 5 49 5 0 44 43 6 79 49 7 1 13 7 2 2 49 8 2 15 83 9 11 I 8 I 1 I 1 I 1 n p 10 x 15 @abstract_model x 15 build_statement x 5 field x 7 boolean x 4 send x 6 should x 4 Hash x 16 new_from_literal x 3 []= x 2 == p 5 I 0 I 262 I 4 I 263 I 27 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 5 value x 15 @abstract_model x 15 build_statement x 5 field x 7 boolean s 4 word x 4 send x 6 be_nil x 6 should p 7 I 0 I 25f I 11 I 262 I 22 I 265 I 38 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 27 supports integer type query M 1 p 2 x 9 for_block t n x 9 __block__ i 58 39 0 7 1 7 2 7 3 7 4 64 1 49 5 5 49 6 0 44 43 7 79 49 8 1 13 7 2 79 49 9 2 15 83 10 15 39 0 7 1 7 2 7 3 7 11 64 1 49 5 5 5 48 12 49 6 1 11 I 7 I 0 I 0 I 0 I -2 p 13 x 15 @abstract_model x 15 build_statement x 5 field x 7 integer s 1 1 x 4 send x 6 should x 4 Hash x 16 new_from_literal x 3 []= x 2 == s 4 word x 6 be_nil p 5 I 0 I 269 I 24 I 26a I 3a x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 26 supports string type query M 1 p 2 x 9 for_block t n x 9 __block__ i 306 39 0 7 1 7 2 7 3 7 4 64 1 49 5 5 5 48 6 49 7 1 15 39 0 7 1 7 2 7 3 7 8 64 7 9 64 49 5 5 5 48 6 49 7 1 15 39 0 7 1 7 2 7 3 7 8 64 7 10 64 49 5 5 49 7 0 44 43 11 79 49 12 1 13 7 2 7 13 13 70 9 94 15 44 43 14 7 8 78 49 15 2 6 13 49 16 2 15 83 17 15 39 0 7 1 7 2 7 3 7 8 64 7 18 64 49 5 5 49 7 0 44 43 11 79 49 12 1 13 7 2 7 19 13 70 9 149 15 44 43 14 7 8 78 49 15 2 6 19 49 16 2 15 83 17 15 39 0 7 1 7 2 7 3 7 8 64 7 20 64 49 5 5 49 7 0 44 43 11 79 49 12 1 13 7 2 7 21 13 70 9 204 15 44 43 14 7 22 78 49 15 2 6 21 49 16 2 15 83 17 15 39 0 7 1 7 2 7 3 7 8 64 7 23 64 49 5 5 49 7 0 44 43 11 79 49 12 1 13 7 2 7 24 13 70 9 259 15 44 43 14 7 25 78 49 15 2 6 24 49 16 2 15 83 17 15 39 0 7 1 7 2 7 3 7 8 64 7 26 64 49 5 5 49 7 0 44 43 11 79 49 12 1 13 7 2 7 8 64 49 16 2 15 83 17 11 I 8 I 0 I 0 I 0 I -2 p 27 x 15 @abstract_model x 15 build_statement x 5 field x 6 string s 0 x 4 send x 6 be_nil x 6 should s 3 foo s 3 was s 7 default x 4 Hash x 16 new_from_literal n x 6 Regexp x 3 new x 3 []= x 2 == s 4 like n s 11 starts_with n s 4 ^foo s 9 ends_with n s 4 foo$ s 2 is p 15 I 0 I 26e I 16 I 26f I 2e I 270 I 65 I 271 I 9c I 272 I d3 I 273 I 10a I 274 I 132 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 24 supports date type query M 1 p 2 x 9 for_block t n x 9 __block__ i 706 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 7 64 7 8 64 7 9 64 35 3 49 10 2 15 13 7 11 7 12 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 80 49 3 1 13 7 16 64 45 17 18 13 71 19 47 9 133 47 49 20 0 13 7 21 79 80 47 49 22 3 15 8 140 7 21 79 80 49 19 3 49 10 2 15 13 7 23 64 45 17 24 13 71 19 47 9 174 47 49 20 0 13 7 21 79 4 3 47 49 22 3 15 8 182 7 21 79 4 3 49 19 3 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 25 15 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 7 64 7 9 64 7 7 64 35 3 49 10 2 15 13 7 11 7 12 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 16 64 45 17 26 13 71 19 47 9 333 47 49 20 0 13 7 21 79 4 3 47 49 22 3 15 8 341 7 21 79 4 3 49 19 3 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 25 15 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 7 64 7 7 64 7 8 64 35 3 49 10 2 15 13 7 11 7 12 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 23 64 45 17 27 13 71 19 47 9 491 47 49 20 0 13 7 21 79 80 47 49 22 3 15 8 498 7 21 79 80 49 19 3 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 25 15 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 8 64 35 1 49 10 2 15 13 7 11 7 28 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 80 49 3 1 13 7 16 64 45 17 29 13 71 19 47 9 642 47 49 20 0 13 7 21 79 80 47 49 22 3 15 8 649 7 21 79 80 49 19 3 49 10 2 15 13 7 23 64 45 17 30 13 71 19 47 9 682 47 49 20 0 13 7 21 79 80 47 49 22 3 15 8 689 7 21 79 80 49 19 3 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 25 11 I 10 I 0 I 0 I 0 I -2 p 31 x 15 @abstract_model x 17 filter_conditions x 4 Hash x 16 new_from_literal s 10 date_field s 1 1 x 1 v s 0 s 10 01/02/2012 s 10 01/03/2012 x 3 []= x 1 o s 7 between x 4 send x 6 should s 4 $and s 4 $gte x 4 Date n x 3 new x 8 allocate I 7dc x 10 initialize s 4 $lte n x 2 == n n s 7 default n n p 9 I 0 I 278 I c7 I 279 I 166 I 27a I 203 I 27b I 2c2 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 28 supports datetime type query M 1 p 2 x 9 for_block t n x 9 __block__ i 581 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 7 64 7 8 64 7 9 64 35 3 49 10 2 15 13 7 11 7 12 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 80 49 3 1 13 7 16 64 45 17 18 7 19 79 80 49 20 3 49 10 2 15 13 7 21 64 45 17 22 7 19 79 4 3 49 20 3 49 23 0 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 24 15 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 7 64 7 9 64 7 7 64 35 3 49 10 2 15 13 7 11 7 12 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 16 64 45 17 25 7 19 79 4 3 49 20 3 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 24 15 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 7 64 7 7 64 7 8 64 35 3 49 10 2 15 13 7 11 7 12 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 21 64 45 17 26 7 19 79 80 49 20 3 49 23 0 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 24 15 39 0 7 1 44 43 2 79 49 3 1 13 7 4 64 44 43 2 79 49 3 1 13 7 5 64 44 43 2 80 49 3 1 13 7 6 7 8 64 35 1 49 10 2 15 13 7 11 7 27 64 49 10 2 15 49 10 2 15 49 10 2 15 49 13 2 49 14 0 44 43 2 79 49 3 1 13 7 15 64 44 43 2 79 49 3 1 13 7 4 64 44 43 2 80 49 3 1 13 7 16 64 45 17 28 7 19 79 80 49 20 3 49 10 2 15 13 7 21 64 45 17 29 7 19 79 80 49 20 3 49 23 0 49 10 2 15 49 10 2 15 35 1 49 10 2 15 83 24 11 I f I 0 I 0 I 0 I -2 p 30 x 15 @abstract_model x 17 filter_conditions x 4 Hash x 16 new_from_literal s 14 datetime_field s 1 1 x 1 v s 0 s 10 01/02/2012 s 10 01/03/2012 x 3 []= x 1 o s 7 between x 4 send x 6 should s 4 $and s 4 $gte x 4 Time n I 7dc x 5 local s 4 $lte n x 10 end_of_day x 2 == n n s 7 default n n p 9 I 0 I 27f I 9d I 280 I 125 I 281 I 1af I 282 I 245 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 24 supports enum type query M 1 p 2 x 9 for_block t n x 9 __block__ i 55 39 0 7 1 7 2 7 3 7 4 64 1 49 5 5 49 6 0 44 43 7 79 49 8 1 13 7 2 44 43 7 79 49 8 1 13 7 9 64 7 4 64 35 1 49 10 2 15 49 10 2 15 83 11 11 I 9 I 0 I 0 I 0 I -2 p 12 x 15 @abstract_model x 15 build_statement x 5 field x 4 enum s 1 1 x 4 send x 6 should x 4 Hash x 16 new_from_literal s 3 $in x 3 []= x 2 == p 3 I 0 I 286 I 37 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 29 I 0 I 230 I 8 I 234 I 13 I 23a I 1e I 240 I 29 I 246 I 34 I 24c I 3f I 252 I 4a I 258 I 55 I 25e I 60 I 268 I 6b I 26d I 76 I 277 I 81 I 27e I 8c I 285 I 97 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 22 model attribute method M 1 p 2 x 9 for_block t n x 9 __block__ i 30 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 7 M 1 p 2 x 9 for_block t n x 9 __block__ i 35 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 7 5 64 47 49 6 1 15 8 32 7 5 64 49 3 1 38 7 11 I 4 I 0 I 0 I 0 I -2 p 8 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate s 6 Player x 10 initialize x 15 @abstract_model p 3 I 0 I 28c I 23 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 31 #scoped returns relation object M 1 p 2 x 9 for_block t n x 9 __block__ i 19 39 0 49 1 0 5 45 2 3 43 4 47 49 5 1 49 6 1 11 I 4 I 0 I 0 I 0 I -2 p 7 x 15 @abstract_model x 6 scoped x 7 Mongoid n x 8 Criteria x 14 be_instance_of x 6 should p 3 I 0 I 290 I 13 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 2 it s 17 #table_name works M 1 p 2 x 9 for_block t n x 9 __block__ i 14 39 0 49 1 0 49 2 0 7 3 64 83 4 11 I 3 I 0 I 0 I 0 I -2 p 5 x 15 @abstract_model x 10 table_name x 6 should s 7 players x 2 == p 3 I 0 I 294 I e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 7 I 0 I 28b I 8 I 28f I 13 I 293 I 1e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 s 13 serialization M 1 p 2 x 9 for_block t n x 9 __block__ i 30 5 56 0 47 50 1 0 15 5 7 2 64 56 3 47 50 4 1 15 5 7 5 64 56 6 47 50 4 1 11 I 4 I 0 I 0 I 0 I -2 p 7 M 1 p 2 x 9 for_block t n x 9 __block__ i 64 45 0 1 43 2 13 71 3 47 9 26 47 49 4 0 13 7 5 64 47 49 6 1 15 8 32 7 5 64 49 3 1 38 7 15 45 0 8 43 9 13 71 3 47 9 58 47 49 4 0 13 47 49 6 0 15 8 61 49 3 0 38 10 11 I 4 I 0 I 0 I 0 I -2 p 11 x 10 RailsAdmin n x 13 AbstractModel x 3 new x 8 allocate s 9 FieldTest x 10 initialize x 15 @abstract_model n x 14 MainController x 11 @controller p 5 I 0 I 29a I 23 I 29b I 40 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 6 before s 19 accepts array value M 1 p 2 x 9 for_block t n x 9 __block__ i 56 44 43 0 79 49 1 1 13 7 2 7 3 64 49 4 2 15 19 0 15 39 5 7 6 7 7 64 39 8 49 9 0 20 0 49 10 4 15 20 0 7 2 49 11 1 49 12 0 79 4 3 35 2 83 13 11 I 7 I 1 I 0 I 0 I -2 p 14 x 4 Hash x 16 new_from_literal x 11 array_field s 6 [1, 3] x 3 []= x 11 @controller x 20 sanitize_params_for! s 6 create x 15 @abstract_model x 6 config x 4 send x 2 [] x 6 should x 2 == p 7 I 0 I 29f I 14 I 2a0 I 26 I 2a1 I 38 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 6 params x 2 it s 18 accepts hash value M 1 p 2 x 9 for_block t n x 9 __block__ i 77 44 43 0 79 49 1 1 13 7 2 7 3 64 49 4 2 15 19 0 15 39 5 7 6 7 7 64 39 8 49 9 0 20 0 49 10 4 15 20 0 7 2 49 11 1 49 12 0 44 43 0 80 49 1 1 13 7 13 64 79 49 4 2 15 13 7 14 64 4 3 49 4 2 15 83 15 11 I 7 I 1 I 0 I 0 I -2 p 16 x 4 Hash x 16 new_from_literal x 10 hash_field s 12 {a: 1, b: 3} x 3 []= x 11 @controller x 20 sanitize_params_for! s 6 create x 15 @abstract_model x 6 config x 4 send x 2 [] x 6 should s 1 a s 1 b x 2 == p 7 I 0 I 2a5 I 14 I 2a6 I 26 I 2a7 I 4d x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 1 x 6 params p 7 I 0 I 299 I 8 I 29e I 13 I 2a4 I 1e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 p 19 I 0 I 5 I b I f4 I 16 I 181 I 21 I 1cb I 2c I 213 I 37 I 21f I 42 I 22f I 4d I 28a I 58 I 298 I 63 x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0 x 8 describe p 7 I 0 I 1 I 9 I 2 I 12 I 4 I 2e x 67 /Users/erik/Projects/rails_admin/spec/unit/adapters/mongoid_spec.rb p 0