Skip to content

Instantly share code, notes, and snippets.

@amasses
Created May 26, 2010 15:08
Show Gist options
  • Save amasses/414608 to your computer and use it in GitHub Desktop.
Save amasses/414608 to your computer and use it in GitHub Desktop.
[Broc-MBP.local]: Broc:~/.bin [git:master!]
→ cd /tmp
[Broc-MBP.local]: Broc:/tmp
→ git clone http://github.com/jnunemaker/mongomapper.git
Initialized empty Git repository in /private/tmp/mongomapper/.git/
mviremote: Counting objects: 6667, done.
remote: Compressing objects: 100% (2387/2387), done.
Receiving objects: 27% (1801/6667), 316.00 KiB | 97 KiB/s
remote: Total 6667 (delta 4737), reused 6014 (delta 4193)
Receiving objects: 100% (6667/6667), 808.50 KiB | 134 KiB/s, done.
Resolving deltas: 100% (4737/4737), done.
[Broc-MBP.local]: Broc:/tmp
→ mvim ~/.bin/install.sh
[Broc-MBP.local]: Broc:/tmp
→ cd mongomapper/
/tmp/mongomapper
[Broc-MBP.local]: Broc:/tmp/mongomapper [git:master]
→ rake test
(in /private/tmp/mongomapper)
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -I"lib:lib:test" -rubygems "/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/associations/test_belongs_to_polymorphic_proxy.rb" "test/functional/associations/test_belongs_to_proxy.rb" "test/functional/associations/test_in_array_proxy.rb" "test/functional/associations/test_many_documents_as_proxy.rb" "test/functional/associations/test_many_documents_proxy.rb" "test/functional/associations/test_many_embedded_polymorphic_proxy.rb" "test/functional/associations/test_many_embedded_proxy.rb" "test/functional/associations/test_many_polymorphic_proxy.rb" "test/functional/associations/test_one_embedded_proxy.rb" "test/functional/associations/test_one_proxy.rb" "test/functional/test_associations.rb" "test/functional/test_binary.rb" "test/functional/test_callbacks.rb" "test/functional/test_dirty.rb" "test/functional/test_document.rb" "test/functional/test_dynamic_querying.rb" "test/functional/test_embedded_document.rb" "test/functional/test_identity_map.rb" "test/functional/test_indexes.rb" "test/functional/test_logger.rb" "test/functional/test_modifiers.rb" "test/functional/test_pagination.rb" "test/functional/test_protected.rb" "test/functional/test_query.rb" "test/functional/test_querying.rb" "test/functional/test_safe.rb" "test/functional/test_sci.rb" "test/functional/test_string_id_compatibility.rb" "test/functional/test_timestamps.rb" "test/functional/test_userstamps.rb" "test/functional/test_validations.rb" "test/test_helper.rb" "test/unit/associations/test_base.rb" "test/unit/associations/test_proxy.rb" "test/unit/serializers/test_json_serializer.rb" "test/unit/test_descendant_appends.rb" "test/unit/test_document.rb" "test/unit/test_dynamic_finder.rb" "test/unit/test_embedded_document.rb" "test/unit/test_extensions.rb" "test/unit/test_key.rb" "test/unit/test_keys.rb" "test/unit/test_mongo_mapper.rb" "test/unit/test_pagination.rb" "test/unit/test_plugins.rb" "test/unit/test_rails.rb" "test/unit/test_rails_compatibility.rb" "test/unit/test_serialization.rb" "test/unit/test_time_zones.rb" "test/unit/test_validations.rb"
Loaded suite /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
...................................................................................................................................................................................................................................................................................................EEEEEEEEEEEEEEEEEE......EE........EE.EEEEEE.....................................................................................................................................................................................................................................................................................................................................................................................................F..F...F.................................................................................................................................................................................................................................................................................................................................................................
Finished in 14.546614 seconds.
1) Error:
test: Document #all should add all documents to map. (IdentityMapTest):
NoMethodError: undefined method `fields?' for #<Plucky::Query:0x107c83720>
./lib/mongo_mapper/plugins/identity_map.rb:45:in `find_many'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `tap'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `find_many'
./lib/mongo_mapper/plugins/querying.rb:48:in `all'
./test/functional/test_identity_map.rb:304:in `__bind_1274883299_483952'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #all should add all documents to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
2) Error:
test: Document #all should add missing documents to map and return existing ones. (IdentityMapTest):
NoMethodError: undefined method `fields?' for #<Plucky::Query:0x107bc70e8>
./lib/mongo_mapper/plugins/identity_map.rb:45:in `find_many'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `tap'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `find_many'
./lib/mongo_mapper/plugins/querying.rb:48:in `all'
./test/functional/test_identity_map.rb:317:in `__bind_1274883299_491868'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #all should add missing documents to map and return existing ones. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
3) Error:
test: Document #find (with multiple ids) should add all documents to map. (IdentityMapTest):
NoMethodError: undefined method `fields?' for #<Plucky::Query:0x107b36d90>
./lib/mongo_mapper/plugins/identity_map.rb:45:in `find_many'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `tap'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `find_many'
./lib/mongo_mapper/plugins/querying.rb:138:in `find_some'
./lib/mongo_mapper/plugins/querying.rb:11:in `find'
./test/functional/test_identity_map.rb:237:in `__bind_1274883299_502700'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with multiple ids) should add all documents to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
4) Error:
test: Document #find (with multiple ids) should add missing documents to map and return existing ones. (IdentityMapTest):
NoMethodError: undefined method `fields?' for #<Plucky::Query:0x107a78e58>
./lib/mongo_mapper/plugins/identity_map.rb:45:in `find_many'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `tap'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `find_many'
./lib/mongo_mapper/plugins/querying.rb:138:in `find_some'
./lib/mongo_mapper/plugins/querying.rb:11:in `find'
./test/functional/test_identity_map.rb:250:in `__bind_1274883299_513778'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with multiple ids) should add missing documents to map and return existing ones. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
5) Error:
test: Document #find (with one id and options) should query the database. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1079d76e8>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./lib/mongo_mapper/plugins/associations/many_documents_proxy.rb:10:in `find'
./test/functional/test_identity_map.rb:216:in `__bind_1274883299_527315'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id and options) should query the database. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
6) Error:
test: Document #find (with one id and options) should return exact object. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x107936a18>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./lib/mongo_mapper/plugins/associations/many_documents_proxy.rb:10:in `find'
./test/functional/test_identity_map.rb:221:in `__bind_1274883299_568554'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id and options) should return exact object. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
7) Error:
test: Document #find (with one id and options) should return nil if not found . (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1078cd068>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./lib/mongo_mapper/plugins/associations/many_documents_proxy.rb:10:in `find'
./test/functional/test_identity_map.rb:226:in `__bind_1274883299_578119'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id and options) should return nil if not found . '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
8) Error:
test: Document #find (with one id) for object in map should not query database. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x10786cd08>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./test/functional/test_identity_map.rb:189:in `__bind_1274883299_582838'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id) for object in map should not query database. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
9) Error:
test: Document #find (with one id) for object in map should return exact object. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x107826768>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./test/functional/test_identity_map.rb:194:in `__bind_1274883299_588070'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id) for object in map should return exact object. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
10) Error:
test: Document #find (with one id) for object not in map should add object to map. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1077f2d00>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./test/functional/test_identity_map.rb:173:in `__bind_1274883299_594226'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id) for object not in map should add object to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
11) Error:
test: Document #find (with one id) for object not in map should query the database. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1077bfb80>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./test/functional/test_identity_map.rb:168:in `__bind_1274883299_598905'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id) for object not in map should query the database. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
12) Error:
test: Document #find (with one id) for object not in map should return nil if not found . (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x10778dc48>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./test/functional/test_identity_map.rb:178:in `__bind_1274883299_603493'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find (with one id) for object not in map should return nil if not found . '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
13) Error:
test: Document #find_by_id should return nil for document id not found in collection. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1077559b0>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:35:in `find_by_id'
./test/functional/test_identity_map.rb:330:in `__bind_1274883299_608371'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #find_by_id should return nil for document id not found in collection. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
14) Error:
test: Document #first for object in map should not query database. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x107721598>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./test/functional/test_identity_map.rb:286:in `__bind_1274883299_614269'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #first for object in map should not query database. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
15) Error:
test: Document #first for object in map should return exact object. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1076e84c8>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./test/functional/test_identity_map.rb:291:in `__bind_1274883299_619281'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #first for object in map should return exact object. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
16) Error:
test: Document #first for object not in map should add object to map. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1076b4ad8>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./test/functional/test_identity_map.rb:270:in `__bind_1274883299_625013'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #first for object not in map should add object to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
17) Error:
test: Document #first for object not in map should query the database. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1076819d0>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./test/functional/test_identity_map.rb:265:in `__bind_1274883299_630020'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #first for object not in map should query the database. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
18) Error:
test: Document #first for object not in map should return nil if not found. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x10764fae8>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./test/functional/test_identity_map.rb:275:in `__bind_1274883299_634734'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document #first for object not in map should return nil if not found. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
19) Error:
test: Document querying and selecting certain fields should not add to map. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x107c9d2b0>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./test/functional/test_identity_map.rb:342:in `__bind_1274883299_840879'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document querying and selecting certain fields should not add to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
20) Error:
test: Document querying and selecting certain fields should return nil if not found. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x107beea80>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./test/functional/test_identity_map.rb:351:in `__bind_1274883299_846823'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document querying and selecting certain fields should return nil if not found. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
21) Error:
test: Document single collection inherited models should load from map when using parent collection inherited class. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1076282e0>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:13:in `find'
./test/functional/test_identity_map.rb:405:in `__bind_1274883299_903085'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document single collection inherited models should load from map when using parent collection inherited class. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
22) Error:
test: Document single collection inherited models should not query when finding by _id and _type. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1075bca90>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:35:in `find_by_id'
./lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb:19:in `find_target'
./lib/mongo_mapper/plugins/associations/proxy.rb:105:in `load_target'
./lib/mongo_mapper/plugins/associations/proxy.rb:58:in `reload'
./lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb:13:in `replace'
./lib/mongo_mapper/plugins/associations.rb:41:in `blog='
./lib/mongo_mapper/plugins/keys.rb:177:in `send'
./lib/mongo_mapper/plugins/keys.rb:177:in `attributes='
./lib/mongo_mapper/plugins/keys.rb:175:in `each_pair'
./lib/mongo_mapper/plugins/keys.rb:175:in `attributes='
./lib/mongo_mapper/plugins/keys.rb:205:in `assign'
./lib/mongo_mapper/plugins/protected.rb:23:in `assign'
./lib/mongo_mapper/plugins/keys.rb:164:in `initialize'
./lib/mongo_mapper/plugins/dirty.rb:43:in `initialize'
./lib/mongo_mapper/plugins/sci.rb:26:in `initialize'
./lib/mongo_mapper/plugins/querying.rb:166:in `new'
./lib/mongo_mapper/plugins/querying.rb:166:in `initialize_each'
./lib/mongo_mapper/plugins/querying.rb:165:in `each'
./lib/mongo_mapper/plugins/querying.rb:165:in `initialize_each'
./lib/mongo_mapper/plugins/querying.rb:68:in `create'
./test/functional/test_identity_map.rb:391:in `__bind_1274883299_910320'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document single collection inherited models should not query when finding by _id and _type. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
23) Error:
test: Document single collection inherited models should work correctly with belongs to proxy. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1075115c8>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:35:in `find_by_id'
./lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb:19:in `find_target'
./lib/mongo_mapper/plugins/associations/proxy.rb:105:in `load_target'
./lib/mongo_mapper/plugins/associations/proxy.rb:58:in `reload'
./lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb:13:in `replace'
./lib/mongo_mapper/plugins/associations.rb:41:in `parent='
./lib/mongo_mapper/plugins/keys.rb:177:in `send'
./lib/mongo_mapper/plugins/keys.rb:177:in `attributes='
./lib/mongo_mapper/plugins/keys.rb:175:in `each_pair'
./lib/mongo_mapper/plugins/keys.rb:175:in `attributes='
./lib/mongo_mapper/plugins/keys.rb:205:in `assign'
./lib/mongo_mapper/plugins/protected.rb:23:in `assign'
./lib/mongo_mapper/plugins/keys.rb:164:in `initialize'
./lib/mongo_mapper/plugins/dirty.rb:43:in `initialize'
./lib/mongo_mapper/plugins/sci.rb:26:in `initialize'
./lib/mongo_mapper/plugins/querying.rb:166:in `new'
./lib/mongo_mapper/plugins/querying.rb:166:in `initialize_each'
./lib/mongo_mapper/plugins/querying.rb:165:in `each'
./lib/mongo_mapper/plugins/querying.rb:165:in `initialize_each'
./lib/mongo_mapper/plugins/querying.rb:68:in `create'
./test/functional/test_identity_map.rb:412:in `__bind_1274883299_930582'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document single collection inherited models should work correctly with belongs to proxy. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
24) Error:
test: Document single collection inherited models should work correctly with one proxy create. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1074c0128>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:35:in `find_by_id'
./lib/mongo_mapper/plugins/associations/belongs_to_proxy.rb:19:in `find_target'
./lib/mongo_mapper/plugins/associations/proxy.rb:105:in `load_target'
./lib/mongo_mapper/plugins/associations/proxy.rb:29:in `inspect'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/built_in/truth_expectations.rb:139:in `ask_for'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:7:in `call'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:7:in `build_matcher'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:34:in `call'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:34:in `matches?'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/expectation_builder.rb:6:in `build_expectation'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/modals.rb:12:in `should'
./test/functional/test_identity_map.rb:430:in `__bind_1274883299_944744'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document single collection inherited models should work correctly with one proxy create. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
25) Error:
test: Document single collection inherited models should work correctly with one proxy. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x10746c5c8>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./lib/mongo_mapper/plugins/associations/one_proxy.rb:49:in `find_target'
./lib/mongo_mapper/plugins/associations/proxy.rb:105:in `load_target'
./lib/mongo_mapper/plugins/associations/one_proxy.rb:19:in `replace'
./lib/mongo_mapper/plugins/associations.rb:41:in `blog='
./lib/mongo_mapper/plugins/keys.rb:177:in `send'
./lib/mongo_mapper/plugins/keys.rb:177:in `attributes='
./lib/mongo_mapper/plugins/keys.rb:175:in `each_pair'
./lib/mongo_mapper/plugins/keys.rb:175:in `attributes='
./lib/mongo_mapper/plugins/keys.rb:205:in `assign'
./lib/mongo_mapper/plugins/protected.rb:23:in `assign'
./lib/mongo_mapper/plugins/keys.rb:164:in `initialize'
./lib/mongo_mapper/plugins/dirty.rb:43:in `initialize'
./lib/mongo_mapper/plugins/sci.rb:26:in `initialize'
./lib/mongo_mapper/plugins/querying.rb:166:in `new'
./lib/mongo_mapper/plugins/querying.rb:166:in `initialize_each'
./lib/mongo_mapper/plugins/querying.rb:165:in `each'
./lib/mongo_mapper/plugins/querying.rb:165:in `initialize_each'
./lib/mongo_mapper/plugins/querying.rb:68:in `create'
./test/functional/test_identity_map.rb:422:in `__bind_1274883299_957427'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document single collection inherited models should work correctly with one proxy. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
26) Error:
test: Document without identity map all should not add to map. (IdentityMapTest):
NoMethodError: undefined method `fields?' for #<Plucky::Query:0x1074347e0>
./lib/mongo_mapper/plugins/identity_map.rb:45:in `find_many'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `tap'
./lib/mongo_mapper/plugins/identity_map.rb:44:in `find_many'
./lib/mongo_mapper/plugins/querying.rb:48:in `all'
./test/functional/test_identity_map.rb:476:in `__bind_1274883299_963499'
./lib/mongo_mapper/plugins/identity_map.rb:83:in `without_identity_map'
./test/functional/test_identity_map.rb:471:in `__bind_1274883299_963499'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document without identity map all should not add to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
27) Error:
test: Document without identity map first should not add to map. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x107402178>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:39:in `first'
./test/functional/test_identity_map.rb:488:in `__bind_1274883299_969628'
./lib/mongo_mapper/plugins/identity_map.rb:83:in `without_identity_map'
./test/functional/test_identity_map.rb:483:in `__bind_1274883299_969628'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document without identity map first should not add to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
28) Error:
test: Document without identity map last should not add to map. (IdentityMapTest):
NoMethodError: undefined method `simple?' for #<Plucky::Query:0x1073c9da0>
./lib/mongo_mapper/plugins/identity_map.rb:34:in `find_one'
./lib/mongo_mapper/plugins/querying.rb:44:in `last'
./test/functional/test_identity_map.rb:500:in `__bind_1274883299_975703'
./lib/mongo_mapper/plugins/identity_map.rb:83:in `without_identity_map'
./test/functional/test_identity_map.rb:495:in `__bind_1274883299_975703'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document without identity map last should not add to map. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run'
29) Failure:
test: #all should not modify original query when using options. (QueryTest)
[/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:38:in `fail!'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/expectation_builder.rb:6:in `build_expectation'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/modals.rb:12:in `should'
./test/functional/test_query.rb:138:in `__bind_1274883305_906926'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: #all should not modify original query when using options. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
Expected "John" to return true for nil?, with 'no args'.
30) Failure:
test: #first should not modify original query when using options. (QueryTest)
[/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:38:in `fail!'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/expectation_builder.rb:6:in `build_expectation'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/modals.rb:12:in `should'
./test/functional/test_query.rb:160:in `__bind_1274883305_921688'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: #first should not modify original query when using options. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
Expected "John" to return true for nil?, with 'no args'.
31) Failure:
test: #last should not modify original query when using options. (QueryTest)
[/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:38:in `fail!'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/expectation_builder.rb:6:in `build_expectation'
/Library/Ruby/Gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/modals.rb:12:in `should'
./test/functional/test_query.rb:182:in `__bind_1274883305_938547'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `call'
/Library/Ruby/Gems/1.8/gems/shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: #last should not modify original query when using options. '
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.9.8/lib/mocha/integration/test_unit/ruby_version_186_and_above.rb:19:in `run']:
Expected [["name", -1]] to return true for nil?, with 'no args'.
1084 tests, 863 assertions, 3 failures, 28 errors
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]
(See full trace by running task with --trace)
[Broc-MBP.local]: Broc:/tmp/mongomapper [git:master]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment