Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

rake test_sqlite3 get 2 errors when tested with ruby 1.8.7

View gist:4490252
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63
$ ruby -v
ruby 1.8.7 (2012-10-12 patchlevel 371) [x86_64-linux]
 
$ rake test_sqlite3
/home/yahonda/.rvm/rubies/ruby-1.8.7-p371/bin/ruby -w -I"lib:test" -I"/home/yahonda/.rvm/gems/ruby-1.8.7-p371@32stable/gems/rake-10.0.3/lib" "/home/yahonda/.rvm/gems/ruby-1.8.7-p371@32stable/gems/rake-10.0.3/lib/rake/rake_test_loader.rb" "test/cases/adapter_test.rb" "test/cases/adapters/sqlite3/copy_table_test.rb" "test/cases/adapters/sqlite3/explain_test.rb" "test/cases/adapters/sqlite3/quoting_test.rb" "test/cases/adapters/sqlite3/sqlite3_adapter_test.rb" "test/cases/adapters/sqlite3/statement_pool_test.rb" "test/cases/aggregations_test.rb" "test/cases/ar_schema_test.rb" "test/cases/associations/belongs_to_associations_test.rb" "test/cases/associations/callbacks_test.rb" "test/cases/associations/cascaded_eager_loading_test.rb" "test/cases/associations/eager_load_includes_full_sti_class_test.rb" "test/cases/associations/eager_load_nested_include_test.rb" "test/cases/associations/eager_singularization_test.rb" "test/cases/associations/eager_test.rb" "test/cases/associations/extension_test.rb" "test/cases/associations/habtm_join_table_test.rb" "test/cases/associations/has_and_belongs_to_many_associations_test.rb" "test/cases/associations/has_many_associations_test.rb" "test/cases/associations/has_many_through_associations_test.rb" "test/cases/associations/has_one_associations_test.rb" "test/cases/associations/has_one_through_associations_test.rb" "test/cases/associations/identity_map_test.rb" "test/cases/associations/inner_join_association_test.rb" "test/cases/associations/inverse_associations_test.rb" "test/cases/associations/join_model_test.rb" "test/cases/associations/nested_through_associations_test.rb" "test/cases/associations_test.rb" "test/cases/attribute_methods/read_test.rb" "test/cases/attribute_methods_test.rb" "test/cases/autosave_association_test.rb" "test/cases/base_test.rb" "test/cases/batches_test.rb" "test/cases/binary_test.rb" "test/cases/bind_parameter_test.rb" "test/cases/calculations_test.rb" "test/cases/callbacks_test.rb" "test/cases/clone_test.rb" "test/cases/coders/yaml_column_test.rb" "test/cases/column_alias_test.rb" "test/cases/column_definition_test.rb" "test/cases/column_test.rb" "test/cases/connection_adapters/abstract_adapter_test.rb" "test/cases/connection_adapters/connection_handler_test.rb" "test/cases/connection_adapters/schema_cache_test.rb" "test/cases/connection_management_test.rb" "test/cases/connection_pool_test.rb" "test/cases/connection_specification/resolver_test.rb" "test/cases/counter_cache_test.rb" "test/cases/custom_locking_test.rb" "test/cases/database_statements_test.rb" "test/cases/date_time_test.rb" "test/cases/defaults_test.rb" "test/cases/deprecated_finder_test.rb" "test/cases/dirty_test.rb" "test/cases/dup_test.rb" "test/cases/dynamic_finder_match_test.rb" "test/cases/explain_subscriber_test.rb" "test/cases/explain_test.rb" "test/cases/finder_respond_to_test.rb" "test/cases/finder_test.rb" "test/cases/fixtures/file_test.rb" "test/cases/fixtures_test.rb" "test/cases/habtm_destroy_order_test.rb" "test/cases/i18n_test.rb" "test/cases/identity_map/middleware_test.rb" "test/cases/identity_map_test.rb" "test/cases/inheritance_test.rb" "test/cases/invalid_date_test.rb" "test/cases/invertible_migration_test.rb" "test/cases/json_serialization_test.rb" "test/cases/lifecycle_test.rb" "test/cases/locking_test.rb" "test/cases/log_subscriber_test.rb" "test/cases/mass_assignment_security_test.rb" "test/cases/method_scoping_test.rb" "test/cases/migration/command_recorder_test.rb" "test/cases/migration_test.rb" "test/cases/mixin_test.rb" "test/cases/modules_test.rb" "test/cases/multiple_db_test.rb" "test/cases/named_scope_test.rb" "test/cases/nested_attributes_test.rb" "test/cases/persistence_test.rb" "test/cases/pooled_connections_test.rb" "test/cases/primary_keys_test.rb" "test/cases/query_cache_test.rb" "test/cases/quoting_test.rb" "test/cases/readonly_test.rb" "test/cases/reflection_test.rb" "test/cases/relation/where_test.rb" "test/cases/relation_scoping_test.rb" "test/cases/relation_test.rb" "test/cases/relations_test.rb" "test/cases/reload_models_test.rb" "test/cases/sanitize_test.rb" "test/cases/schema_dumper_test.rb" "test/cases/serialization_test.rb" "test/cases/session_store/session_test.rb" "test/cases/store_test.rb" "test/cases/timestamp_test.rb" "test/cases/transaction_callbacks_test.rb" "test/cases/transactions_test.rb" "test/cases/unconnected_test.rb" "test/cases/validations/association_validation_test.rb" "test/cases/validations/i18n_generate_message_validation_test.rb" "test/cases/validations/i18n_validation_test.rb" "test/cases/validations/uniqueness_validation_test.rb" "test/cases/validations_test.rb" "test/cases/xml_serialization_test.rb" "test/cases/yaml_serialization_test.rb"
/home/yahonda/.rvm/gems/ruby-1.8.7-p371@global/gems/bundler-1.2.1/lib/bundler/rubygems_ext.rb:145: warning: discarding old eql?
/home/yahonda/.rvm/gems/ruby-1.8.7-p371@global/gems/bundler-1.2.1/lib/bundler/source.rb:516: warning: method redefined; discarding old revision
Using sqlite3 with Identity Map off
Loaded suite /home/yahonda/.rvm/gems/ruby-1.8.7-p371@32stable/gems/rake-10.0.3/lib/rake/rake_test_loader
Started
...............................................................................................................................................................................................................................................................................................................................EE..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................../home/yahonda/git/rails/activerecord/lib/active_record/attribute_methods/read.rb:86: warning: discarding old name
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................./home/yahonda/git/rails/activerecord/test/migrations/interleaved/pass_3/3_interleaved_innocent_jointable.rb:2: warning: redefine up
/home/yahonda/git/rails/activerecord/test/migrations/interleaved/pass_3/3_interleaved_innocent_jointable.rb:9: warning: redefine down
/home/yahonda/git/rails/activerecord/test/migrations/interleaved/pass_3/1_interleaved_people_have_last_names.rb:2: warning: redefine up
/home/yahonda/git/rails/activerecord/test/migrations/interleaved/pass_3/1_interleaved_people_have_last_names.rb:6: warning: redefine down
.............................................../home/yahonda/git/rails/activerecord/lib/active_record/attribute_methods/read.rb:86: warning: discarding old name
..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 167.211545 seconds.
 
1) Error:
test_marshalling_extensions(AssociationsExtensionsTest):
RuntimeError: ActiveRecord::Associations::Association#options delegated to reflection.options, but reflection is nil: #<ActiveRecord::Associations::HasAndBelongsToManyAssociation:0x7fa04851cc10 @proxy=[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>], @join_table=#<Arel::Table:0x7fa04851c300 @aliases=[], @columns=nil, @primary_key=nil, @name="developers_projects", @engine=ActiveRecord::Base, @table_alias=nil>, @target=[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>], @updated=false, @loaded=true, @owner=#<Developer id: 1, name: "David", salary: 80000, created_at: "2013-01-09 12:03:42", updated_at: "2013-01-09 12:03:42">, @association_scope=[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>], @stale_state=nil>
/home/yahonda/git/rails/activerecord/lib/active_record/associations/association.rb:26:in `options'
/home/yahonda/git/rails/activerecord/lib/active_record/associations/collection_association.rb:92:in `find'
/home/yahonda/git/rails/activerecord/lib/active_record/associations/collection_proxy.rb:46:in `__send__'
/home/yahonda/git/rails/activerecord/lib/active_record/associations/collection_proxy.rb:46:in `find'
./test/models/developer.rb:18:in `find_most_recent'
/home/yahonda/git/rails/activerecord/test/cases/associations/extension_test.rb:50:in `test_marshalling_extensions'
/home/yahonda/git/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `__send__'
/home/yahonda/git/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `run'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:425:in `_run__432359435__setup__4__callbacks'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:405:in `send'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `send'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/yahonda/git/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
 
2) Error:
test_marshalling_named_extensions(AssociationsExtensionsTest):
RuntimeError: ActiveRecord::Associations::Association#options delegated to reflection.options, but reflection is nil: #<ActiveRecord::Associations::HasAndBelongsToManyAssociation:0x7fa0484db030 @proxy=[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>], @join_table=#<Arel::Table:0x7fa0484da018 @aliases=[], @columns=nil, @primary_key=nil, @name="developers_projects", @engine=ActiveRecord::Base, @table_alias=nil>, @target=[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>], @updated=false, @loaded=true, @owner=#<Developer id: 1, name: "David", salary: 80000, created_at: "2013-01-09 12:03:42", updated_at: "2013-01-09 12:03:42">, @association_scope=[#<Project id: 2, name: "Active Controller", type: nil>, #<Project id: 1, name: "Active Record", type: nil>], @stale_state=nil>
/home/yahonda/git/rails/activerecord/lib/active_record/associations/association.rb:26:in `options'
/home/yahonda/git/rails/activerecord/lib/active_record/associations/collection_association.rb:92:in `find'
/home/yahonda/git/rails/activerecord/lib/active_record/associations/collection_proxy.rb:46:in `__send__'
/home/yahonda/git/rails/activerecord/lib/active_record/associations/collection_proxy.rb:46:in `find'
./test/models/developer.rb:18:in `find_most_recent'
/home/yahonda/git/rails/activerecord/test/cases/associations/extension_test.rb:65:in `test_marshalling_named_extensions'
/home/yahonda/git/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `__send__'
/home/yahonda/git/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:72:in `run'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:425:in `_run__432359435__setup__4__callbacks'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:405:in `send'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `send'
/home/yahonda/git/rails/activesupport/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/yahonda/git/rails/activesupport/lib/active_support/testing/setup_and_teardown.rb:70:in `run'
 
3363 tests, 9890 assertions, 0 failures, 2 errors
rake aborted!
Command failed with status (1): [ruby -w -I"lib:test" -I"/home/yahonda/.rvm/gems/ruby-1.8.7-p371@32stable/gems/rake-10.0.3/lib" "/home/yahonda/.rvm/gems/ruby-1.8.7-p371@32stable/gems/rake-10.0.3/lib/rake/rake_test_loader.rb" "test/cases/adapter_test.rb" "test/cases/adapters/sqlite3/copy_table_test.rb" "test/cases/adapters/sqlite3/explain_test.rb" "test/cases/adapters/sqlite3/quoting_test.rb" "test/cases/adapters/sqlite3/sqlite3_adapter_test.rb" "test/cases/adapters/sqlite3/statement_pool_test.rb" "test/cases/aggregations_test.rb" "test/cases/ar_schema_test.rb" "test/cases/associations/belongs_to_associations_test.rb" "test/cases/associations/callbacks_test.rb" "test/cases/associations/cascaded_eager_loading_test.rb" "test/cases/associations/eager_load_includes_full_sti_class_test.rb" "test/cases/associations/eager_load_nested_include_test.rb" "test/cases/associations/eager_singularization_test.rb" "test/cases/associations/eager_test.rb" "test/cases/associations/extension_test.rb" "test/cases/associations/habtm_join_table_test.rb" "test/cases/associations/has_and_belongs_to_many_associations_test.rb" "test/cases/associations/has_many_associations_test.rb" "test/cases/associations/has_many_through_associations_test.rb" "test/cases/associations/has_one_associations_test.rb" "test/cases/associations/has_one_through_associations_test.rb" "test/cases/associations/identity_map_test.rb" "test/cases/associations/inner_join_association_test.rb" "test/cases/associations/inverse_associations_test.rb" "test/cases/associations/join_model_test.rb" "test/cases/associations/nested_through_associations_test.rb" "test/cases/associations_test.rb" "test/cases/attribute_methods/read_test.rb" "test/cases/attribute_methods_test.rb" "test/cases/autosave_association_test.rb" "test/cases/base_test.rb" "test/cases/batches_test.rb" "test/cases/binary_test.rb" "test/cases/bind_parameter_test.rb" "test/cases/calculations_test.rb" "test/cases/callbacks_test.rb" "test/cases/clone_test.rb" "test/cases/coders/yaml_column_test.rb" "test/cases/column_alias_test.rb" "test/cases/column_definition_test.rb" "test/cases/column_test.rb" "test/cases/connection_adapters/abstract_adapter_test.rb" "test/cases/connection_adapters/connection_handler_test.rb" "test/cases/connection_adapters/schema_cache_test.rb" "test/cases/connection_management_test.rb" "test/cases/connection_pool_test.rb" "test/cases/connection_specification/resolver_test.rb" "test/cases/counter_cache_test.rb" "test/cases/custom_locking_test.rb" "test/cases/database_statements_test.rb" "test/cases/date_time_test.rb" "test/cases/defaults_test.rb" "test/cases/deprecated_finder_test.rb" "test/cases/dirty_test.rb" "test/cases/dup_test.rb" "test/cases/dynamic_finder_match_test.rb" "test/cases/explain_subscriber_test.rb" "test/cases/explain_test.rb" "test/cases/finder_respond_to_test.rb" "test/cases/finder_test.rb" "test/cases/fixtures/file_test.rb" "test/cases/fixtures_test.rb" "test/cases/habtm_destroy_order_test.rb" "test/cases/i18n_test.rb" "test/cases/identity_map/middleware_test.rb" "test/cases/identity_map_test.rb" "test/cases/inheritance_test.rb" "test/cases/invalid_date_test.rb" "test/cases/invertible_migration_test.rb" "test/cases/json_serialization_test.rb" "test/cases/lifecycle_test.rb" "test/cases/locking_test.rb" "test/cases/log_subscriber_test.rb" "test/cases/mass_assignment_security_test.rb" "test/cases/method_scoping_test.rb" "test/cases/migration/command_recorder_test.rb" "test/cases/migration_test.rb" "test/cases/mixin_test.rb" "test/cases/modules_test.rb" "test/cases/multiple_db_test.rb" "test/cases/named_scope_test.rb" "test/cases/nested_attributes_test.rb" "test/cases/persistence_test.rb" "test/cases/pooled_connections_test.rb" "test/cases/primary_keys_test.rb" "test/cases/query_cache_test.rb" "test/cases/quoting_test.rb" "test/cases/readonly_test.rb" "test/cases/reflection_test.rb" "test/cases/relation/where_test.rb" "test/cases/relation_scoping_test.rb" "test/cases/relation_test.rb" "test/cases/relations_test.rb" "test/cases/reload_models_test.rb" "test/cases/sanitize_test.rb" "test/cases/schema_dumper_test.rb" "test/cases/serialization_test.rb" "test/cases/session_store/session_test.rb" "test/cases/store_test.rb" "test/cases/timestamp_test.rb" "test/cases/transaction_callbacks_test.rb" "test/cases/transactions_test.rb" "test/cases/unconnected_test.rb" "test/cases/validations/association_validation_test.rb" "test/cases/validations/i18n_generate_message_validation_test.rb" "test/cases/validations/i18n_validation_test.rb" "test/cases/validations/uniqueness_validation_test.rb" "test/cases/validations_test.rb" "test/cases/xml_serialization_test.rb" "test/cases/yaml_serialization_test.rb" ]
 
Tasks: TOP => test_sqlite3
(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
Something went wrong with that request. Please try again.