Created
August 4, 2009 15:05
-
-
Save djsun/161293 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In response to: | |
http://github.com/jnunemaker/mongomapper/issues/#issue/46 | |
My setup: | |
* MongoDB nightly OSX 32 bit build. | |
* Gems (installed via 'sudo gem install ...') | |
* mongomapper (0.3.1) | |
* mongodb-mongo (0.10.1) | |
* mongodb-mongo_ext (0.4.1) | |
mongomapper-0.3.1$ rake test | |
(in /opt/local/lib/ruby/gems/1.8/gems/mongomapper-0.3.1) | |
/opt/local/bin/ruby -I"lib:lib:test" "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/functional/test_associations.rb" "test/functional/test_callbacks.rb" "test/functional/test_document.rb" "test/functional/test_pagination.rb" "test/functional/test_rails_compatibility.rb" "test/functional/test_validations.rb" "test/test_helper.rb" "test/unit/serializers/test_json_serializer.rb" "test/unit/test_association_base.rb" "test/unit/test_document.rb" "test/unit/test_embedded_document.rb" "test/unit/test_finder_options.rb" "test/unit/test_key.rb" "test/unit/test_mongo_id.rb" "test/unit/test_mongomapper.rb" "test/unit/test_observing.rb" "test/unit/test_pagination.rb" "test/unit/test_rails_compatibility.rb" "test/unit/test_serializations.rb" "test/unit/test_validations.rb" | |
* DEFERRED: Updating an existing document using update attributes should update attributes. | |
* DEFERRED: Updating an existing document using update attributes should update attributes in the database. | |
* DEFERRED: setting a value should correctly typecast Dates. | |
Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader | |
Started | |
..............................................................................................................................F....F.........................................................................................................FFF.FFFF................................F.............................................................................. | |
Finished in 3.188646 seconds. | |
1) Failure: | |
test: Document Class Methods Finding documents with a single id should raise error if id is illegal. (DocumentTest) | |
[/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:38:in `fail!' | |
/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/expectation_builder.rb:6:in `build_expectation' | |
/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/modals.rb:12:in `should' | |
./test/functional/test_document.rb:211:in `__bind_1249398222_586443' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document Class Methods Finding documents with a single id should raise error if id is illegal. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
Expected #<Proc:0x011fa0e4@./test/functional/test_document.rb:211> to raise MongoMapper::DocumentNotFound, but XGen::Mongo::Driver::IllegalObjectIdFormat was raised instead. | |
2) Failure: | |
test: Document Class Methods Indexing should allow creating index on multiple keys. (DocumentTest) | |
[/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/built_in/operator_expectations.rb:30:in `fail!' | |
/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/built_in/operator_expectations.rb:20:in `==' | |
./test/functional/test_document.rb:467:in `__bind_1249398222_614437' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: Document Class Methods Indexing should allow creating index on multiple keys. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
Expected "last_name_-1_first_name_1" to == "first_name_1_last_name_-1". | |
3) Failure: | |
test: JsonSerialization should allow attribute filtering with only. (JsonSerializationTest) | |
[./test/unit/serializers/test_json_serializer.rb:42:in `__bind_1249398223_37162' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: JsonSerialization should allow attribute filtering with only. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
<"{\"name\":\"Konata Izumi\",\"age\":16}"> expected to be =~ | |
</"name": "Konata Izumi"/>. | |
4) Failure: | |
test: JsonSerialization should allow options for hash of records. (JsonSerializationTest) | |
[./test/unit/serializers/test_json_serializer.rb:101:in `__bind_1249398223_38157' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: JsonSerialization should allow options for hash of records. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
<"{\"1\": {\"name\": \"David\"}}"> expected but was | |
<"{\"1\":{\"name\":\"David\"}}">. | |
5) Failure: | |
test: JsonSerialization should encode all encodable attributes. (JsonSerializationTest) | |
[./test/unit/serializers/test_json_serializer.rb:32:in `__bind_1249398223_39399' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: JsonSerialization should encode all encodable attributes. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
<"{\"name\":\"Konata Izumi\",\"created_at\":\"2006/08/01 00:00:00 +0000\",\"preferences\":{\"shows\":\"anime\"},\"awesome\":true,\"age\":16}"> expected to be =~ | |
</"name": "Konata Izumi"/>. | |
6) Failure: | |
test: array of records should allow attribute filtering with except. (JsonSerializationTest) | |
[./test/unit/serializers/test_json_serializer.rb:91:in `__bind_1249398223_40918' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: array of records should allow attribute filtering with except. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
<"[{\"age\": 39}, {\"age\": 14}]"> expected but was | |
<"[{\"age\":39},{\"age\":14}]">. | |
7) Failure: | |
test: array of records should allow attribute filtering with only. (JsonSerializationTest) | |
[./test/unit/serializers/test_json_serializer.rb:86:in `__bind_1249398223_41884' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: array of records should allow attribute filtering with only. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
<"[{\"name\": \"David\"}, {\"name\": \"Mary\"}]"> expected but was | |
<"[{\"name\":\"David\"},{\"name\":\"Mary\"}]">. | |
8) Failure: | |
test: including methods should include multiple methods. (JsonSerializationTest) | |
[./test/unit/serializers/test_json_serializer.rb:72:in `__bind_1249398223_42852' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: including methods should include multiple methods. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
<"{\"name\":\"Konata Izumi\",\"label\":\"Has cheezburger\",\"favorite_quote\":\"Constraints are liberating\"}"> expected to be =~ | |
</"label": "Has cheezburger"/>. | |
9) Failure: | |
test: including methods should include single method. (JsonSerializationTest) | |
[./test/unit/serializers/test_json_serializer.rb:67:in `__bind_1249398223_43831' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: including methods should include single method. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
<"{\"name\":\"Konata Izumi\",\"label\":\"Has cheezburger\"}"> expected to be =~ | |
</"label": "Has cheezburger"/>. | |
10) Failure: | |
test: mm_typecast should raise DocumentNotFound if invalid id. (MongoIDTest) | |
[/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/matcher_builder.rb:38:in `fail!' | |
/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/expectation_builder.rb:6:in `build_expectation' | |
/opt/local/lib/ruby/gems/1.8/gems/jnunemaker-matchy-0.4.0/lib/matchy/modals.rb:12:in `should' | |
./test/unit/test_mongo_id.rb:24:in `__bind_1249398223_52338' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `call' | |
/opt/local/lib/ruby/gems/1.8/gems/thoughtbot-shoulda-2.10.2/lib/shoulda/context.rb:351:in `test: mm_typecast should raise DocumentNotFound if invalid id. ' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `__send__' | |
/opt/local/lib/ruby/gems/1.8/gems/mocha-0.9.4/lib/mocha/test_case_adapter.rb:69:in `run']: | |
Expected #<Proc:0x0128f2fc@./test/unit/test_mongo_id.rb:24> to raise MongoMapper::DocumentNotFound, but XGen::Mongo::Driver::IllegalObjectIdFormat was raised instead. | |
356 tests, 214 assertions, 10 failures, 0 errors | |
rake aborted! | |
Command failed with status (1): [/opt/local/bin/ruby -I"lib:lib:test" "/opt...] | |
(See full trace by running task with --trace) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment