"bitsweat" made AR/Oracle cry...
http://dev.rubyonrails.org/changeset/6441
------------------------------------------------------------------------
r6441 | bitsweat | 2007-03-17 20:16:53 -0700 (Sat, 17 Mar 2007) | 1 line
alias_method_chain preserves the original method''s visibility. Closes
#7854.
------------------------------------------------------------------------
U activesupport/test/core_ext/module_test.rb
U activesupport/lib/active_support/core_ext/module/aliasing.rb
U activesupport/CHANGELOG
Updated to revision 6441.
1) Failure:
test_adding_junk_to_has_many_through_should_raise_type_mismatch(AssociationsJoinModelTest)
[./test/associations/join_model_test.rb:437:in
`test_adding_junk_to_has_many_through_should_raise_type_mismatch''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in
`run'']:
<ActiveRecord::AssociationTypeMismatch> exception expected but was
Class: <NoMethodError>
Message: <"private method `instantiate'' called for
Tag:Class">
---Backtrace---
./test/../lib/active_record/base.rb:1281:in `method_missing''
./test/../lib/active_record/associations.rb:1502:in `instantiate''
./test/../lib/active_record/associations.rb:1383:in `instantiate''
./test/../lib/active_record/base.rb:1404:in `each_with_index''
./test/../lib/active_record/associations.rb:1380:in `instantiate''
./test/../lib/active_record/associations.rb:1088:in
`find_with_associations''
./test/../lib/active_record/associations.rb:1085:in
`find_with_associations''
./test/../lib/active_record/base.rb:1036:in `find_every''
./test/../lib/active_record/base.rb:429:in `find''
./test/../lib/active_record/associations/has_many_through_association.rb:115:in
`find_target''
./test/../lib/active_record/associations/association_proxy.rb:135:in
`load_target''
./test/../lib/active_record/associations/has_many_through_association.rb:54:in
`<<''
./test/associations/join_model_test.rb:437:in
`test_adding_junk_to_has_many_through_should_raise_type_mismatch''
./test/associations/join_model_test.rb:437:in
`test_adding_junk_to_has_many_through_should_raise_type_mismatch''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in
`run''
---------------
2) Error:
test_adding_to_has_many_through_should_return_self(AssociationsJoinModelTest):
NoMethodError: private method `instantiate'' called for Tag:Class
./test/../lib/active_record/base.rb:1281:in `method_missing''
./test/../lib/active_record/associations.rb:1502:in `instantiate''
./test/../lib/active_record/associations.rb:1383:in `instantiate''
./test/../lib/active_record/base.rb:1404:in `each_with_index''
./test/../lib/active_record/associations.rb:1380:in `instantiate''
./test/../lib/active_record/associations.rb:1088:in
`find_with_associations''
./test/../lib/active_record/associations.rb:1085:in
`find_with_associations''
./test/../lib/active_record/base.rb:1036:in `find_every''
./test/../lib/active_record/base.rb:429:in `find''
./test/../lib/active_record/associations/has_many_through_association.rb:115:in
`find_target''
./test/../lib/active_record/associations/association_proxy.rb:135:in
`load_target''
./test/../lib/active_record/associations/has_many_through_association.rb:54:in
`push''
./test/associations/join_model_test.rb:442:in
`test_adding_to_has_many_through_should_return_self''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in
`run''
3) Failure:
test_create_associate_when_adding_to_has_many_through(AssociationsJoinModelTest)
[./test/associations/join_model_test.rb:408:in
`test_create_associate_when_adding_to_has_many_through''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in
`run'']:
Exception raised:
Class: <NoMethodError>
Message: <"private method `instantiate'' called for
Tag:Class">
---Backtrace---
./test/../lib/active_record/base.rb:1281:in `method_missing''
./test/../lib/active_record/associations.rb:1502:in `instantiate''
./test/../lib/active_record/associations.rb:1383:in `instantiate''
./test/../lib/active_record/callbacks.rb:339:in `each_with_index''
./test/../lib/active_record/associations.rb:1380:in `instantiate''
./test/../lib/active_record/associations.rb:1088:in
`find_with_associations''
./test/../lib/active_record/associations.rb:1085:in
`find_with_associations''
./test/../lib/active_record/base.rb:1036:in `find_every''
./test/../lib/active_record/base.rb:429:in `find''
./test/../lib/active_record/associations/has_many_through_association.rb:115:in
`find_target''
./test/../lib/active_record/associations/association_proxy.rb:135:in
`load_target''
./test/../lib/active_record/associations/has_many_through_association.rb:54:in
`<<''
./test/associations/join_model_test.rb:408:in
`test_create_associate_when_adding_to_has_many_through''
./test/associations/join_model_test.rb:408:in
`test_create_associate_when_adding_to_has_many_through''
/usr/pkg/ruby184/lib/ruby/gems/1.8/gems/mocha-0.4.0/lib/mocha/test_case_adapter.rb:19:in
`run''
---------------
4) Error:
test_delete_associate_when_deleting_from_has_many_through(AssociationsJoinModelTest):
NoMethodError: private method `instantiate'' called for Tag:Class
./test/../lib/active_record/base.rb:1281:in `method_missing''
./test/../lib/active_record/associations.rb:1502:in `instantiate''
./test/../lib/active_record/associations.rb:1383:in `instantiate''
./test/../lib/active_record/callbacks.rb:339:in `each_with_index''
./test/../lib/active_record/associations.rb:1380
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---