Created
March 12, 2009 14:13
-
-
Save methodmissing/78078 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| macbook-pros-computer:scrooge lourens$ rake | |
| (in /Users/lourens/projects/scrooge) | |
| /opt/local/bin/ruby -Ilib:/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test:/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/connections/native_mysql -r /Users/lourens/projects/scrooge/test/setup "/opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/aaa_create_tables_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/adapter_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/aggregations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/ar_schema_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/belongs_to_associations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/callbacks_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/cascaded_eager_loading_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_load_includes_full_sti_class_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_load_nested_include_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_singularization_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/extension_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_and_belongs_to_many_associations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_many_associations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_many_through_associations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_one_associations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_one_through_associations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/inner_join_association_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/join_model_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/attribute_methods_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/autosave_association_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/base_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/batches_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/binary_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/calculations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/callbacks_observers_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/callbacks_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/class_inheritable_attributes_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/column_alias_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/column_definition_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/connection_pool_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/database_statements_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/date_time_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/defaults_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/deprecated_finder_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/dirty_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/finder_respond_to_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/finder_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/fixtures_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/i18n_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/inheritance_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/invalid_date_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/json_serialization_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/lifecycle_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/locking_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/method_scoping_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/migration_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/mixin_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/modules_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/multiple_db_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/named_scope_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/nested_attributes_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/pk_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/pooled_connections_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/query_cache_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/readonly_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/reflection_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/reload_models_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/sanitize_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/schema_dumper_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/serialization_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/transactions_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/unconnected_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/validations_i18n_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/validations_test.rb" "/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/xml_serialization_test.rb" | |
| Using native MySQL | |
| Loaded suite /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/rake_test_loader | |
| Started | |
| ............................................................................................................................................................................................................................................................................................................"1 updated" | |
| .......................................................................................................................................................................................................................................................................F............................F..F......F..................................................................................................................................................................................................................................................................................................................................................................................................................................................................F........................................................F..........F..................................................................................................................................................................................................................................................................................................................................................................................................F............................................F.......................................................................................................................................................................................................................................................... | |
| Finished in 33.479613 seconds. | |
| 1) Failure: | |
| test_eager_with_floating_point_numbers(EagerAssociationTest) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_test.rb:642:in `test_eager_with_floating_point_numbers' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 12 instead of 2 queries were executed. | |
| Queries: | |
| SELECT `comments`.id,`comments`.type FROM `comments` WHERE (123.456 = 123.456) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 1) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 2) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 3) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 5) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 6) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 7) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 8) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 9) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 10) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 11) | |
| SELECT `posts`.title,`posts`.id,`posts`.type,`posts`.author_id FROM `posts` WHERE (`posts`.`id` IN (7,1,2,4,5)) . | |
| <2> expected but was | |
| <12>. | |
| 2) Failure: | |
| test_finding_with_includes_on_belongs_to_association_with_same_include_includes_only_once(EagerAssociationTest) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_test.rb:139:in `test_finding_with_includes_on_belongs_to_association_with_same_include_includes_only_once' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 5 instead of 3 queries were executed. | |
| Queries: | |
| SELECT `posts`.id,`posts`.type FROM `posts` WHERE (`posts`.`id` = 1) | |
| SELECT `posts`.author_id,`posts`.title,`posts`.body,`posts`.comments_count,`posts`.taggings_count FROM `posts` WHERE (`posts`.`id` = 1) | |
| SELECT `authors`.name,`authors`.id FROM `authors` WHERE (`authors`.`id` = 1) | |
| SELECT `authors`.author_address_id,`authors`.author_address_extra_id FROM `authors` WHERE (`authors`.`id` = 1) | |
| SELECT `author_addresses`.id FROM `author_addresses` WHERE (`author_addresses`.`id` = 1) . | |
| <3> expected but was | |
| <5>. | |
| 3) Failure: | |
| test_finding_with_includes_on_null_belongs_to_association_with_same_include_includes_only_once(EagerAssociationTest) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_test.rb:149:in `test_finding_with_includes_on_null_belongs_to_association_with_same_include_includes_only_once' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 2 instead of 1 queries were executed. | |
| Queries: | |
| SELECT `posts`.id,`posts`.type FROM `posts` WHERE (`posts`.`id` = 1) | |
| SELECT `posts`.author_id,`posts`.title,`posts`.body,`posts`.comments_count,`posts`.taggings_count FROM `posts` WHERE (`posts`.`id` = 1) . | |
| <1> expected but was | |
| <2>. | |
| 4) Failure: | |
| test_load_with_sti_sharing_association(EagerAssociationTest) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/eager_test.rb:697:in `test_load_with_sti_sharing_association' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 12 instead of 2 queries were executed. | |
| Queries: | |
| SELECT `comments`.id,`comments`.type FROM `comments` | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 1) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 2) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 3) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 5) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 6) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 7) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 8) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 9) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 10) | |
| SELECT `comments`.post_id,`comments`.body FROM `comments` WHERE (`comments`.`id` = 11) | |
| SELECT `posts`.title,`posts`.id,`posts`.type,`posts`.author_id FROM `posts` WHERE (`posts`.`id` IN (7,1,2,4,5)) . | |
| <2> expected but was | |
| <12>. | |
| 5) Failure: | |
| test_associate_new_by_building(HasManyThroughAssociationsTest) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_many_through_associations_test.rb:72:in `test_associate_new_by_building' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 6 instead of 5 queries were executed. | |
| Queries: | |
| SELECT `posts`.author_id,`posts`.title,`posts`.body,`posts`.comments_count,`posts`.taggings_count FROM `posts` WHERE (`posts`.`id` = 2) | |
| UPDATE `posts` SET `body` = 'Like I hopefully always am-changed' WHERE `id` = 2 | |
| INSERT INTO `people` (`primary_contact_id`, `lock_version`, `gender`, `first_name`) VALUES(NULL, 0, NULL, 'Bob') | |
| INSERT INTO `readers` (`post_id`, `person_id`) VALUES(2, 6) | |
| INSERT INTO `people` (`primary_contact_id`, `lock_version`, `gender`, `first_name`) VALUES(NULL, 0, NULL, 'Ted') | |
| INSERT INTO `readers` (`post_id`, `person_id`) VALUES(2, 7). | |
| <5> expected but was | |
| <6>. | |
| 6) Failure: | |
| test_has_one_through_eager_loading(HasOneThroughAssociationsTest) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_one_through_associations_test.rb:56:in `test_has_one_through_eager_loading' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 4 instead of 3 queries were executed. | |
| Queries: | |
| SELECT `members`.id FROM `members` WHERE (name = 'Groucho Marx') | |
| SELECT `memberships`.id,`memberships`.type FROM `memberships` WHERE (`memberships`.member_id = 219785915) AND ( (`memberships`.`type` = 'CurrentMembership' ) ) | |
| SELECT `memberships`.joined_on,`memberships`.club_id,`memberships`.member_id,`memberships`.favourite FROM `memberships` WHERE (`memberships`.`id` = 260402845) AND ( (`memberships`.`type` = 'CurrentMembership' ) ) | |
| SELECT `clubs`.id FROM `clubs` WHERE (`clubs`.`id` = 319968176) . | |
| <3> expected but was | |
| <4>. | |
| 7) Failure: | |
| test_preloading_has_one_through_on_belongs_to(HasOneThroughAssociationsTest) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/associations/has_one_through_associations_test.rb:168:in `test_preloading_has_one_through_on_belongs_to' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 5 instead of 3 queries were executed. | |
| Queries: | |
| SELECT `member_details`.id FROM `member_details` | |
| SELECT `member_details`.member_id,`member_details`.organization_id,`member_details`.extra_data FROM `member_details` WHERE (`member_details`.`id` = 2) | |
| SELECT `members`.id FROM `members` WHERE (`members`.`id` = 219785915) | |
| SELECT `members`.name,`members`.member_type_id FROM `members` WHERE (`members`.`id` = 219785915) | |
| SELECT `member_types`.id FROM `member_types` WHERE (`member_types`.`id` = 1) . | |
| <3> expected but was | |
| <5>. | |
| 8) Failure: | |
| test_should_not_load_the_associated_models_if_they_were_not_loaded_yet(TestAutosaveAssociationOnAHasManyAssociation) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/autosave_association_test.rb:830:in `test_should_not_load_the_associated_models_if_they_were_not_loaded_yet' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 5 instead of 3 queries were executed. | |
| Queries: | |
| SELECT `birds`.name,`birds`.pirate_id FROM `birds` WHERE (`birds`.`id` = 15) | |
| SELECT `birds`.name,`birds`.pirate_id FROM `birds` WHERE (`birds`.`id` = 16) | |
| UPDATE `pirates` SET `catchphrase` = 'Yarr', `updated_on` = '2009-03-12 14:09:22' WHERE `id` = 728088040 | |
| UPDATE `birds` SET `name` = 'Grace OMalley' WHERE `id` = 15 | |
| UPDATE `birds` SET `name` = 'Privateers Greed' WHERE `id` = 16. | |
| <3> expected but was | |
| <5>. | |
| 9) Failure: | |
| test_not_resaved_when_unchanged(TestDefaultAutosaveAssociationOnAHasOneAssociation) | |
| [/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/../../lib/active_record/test_case.rb:31:in `assert_queries' | |
| /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.1/test/cases/autosave_association_test.rb:112:in `test_not_resaved_when_unchanged' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `__send__' | |
| /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.1/lib/active_support/testing/setup_and_teardown.rb:57:in `run']: | |
| 2 instead of 1 queries were executed. | |
| Queries: | |
| SELECT `accounts`.credit_limit FROM `accounts` WHERE (`accounts`.`id` = 1) | |
| UPDATE `companies` SET `name` = '37signals-changed' WHERE `id` = 1. | |
| <1> expected but was | |
| <2>. | |
| 1804 tests, 5960 assertions, 9 failures, 0 errors | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment