"rick" made AR/Oracle cry... http://dev.rubyonrails.org/changeset/4379 ------------------------------------------------------------------------ r4379 | rick | 2006-05-28 20:48:17 -0700 (Sun, 28 May 2006) | 1 line Fix the has_and_belongs_to_many #create doesn''t populate the join for new records. Closes #3692 [josh@hasmanythrough.com] ------------------------------------------------------------------------ U activerecord/test/associations_test.rb U activerecord/lib/active_record/associations/has_and_belongs_to_many_association.rb U activerecord/lib/active_record/associations.rb U activerecord/CHANGELOG Updated to revision 4379. 1) Failure: test_build(HasAndBelongsToManyAssociationsTest) [./test/associations_test.rb:1357]: <#<Project:0x4614dedc @attributes {"name"=>"Active Controller", "project_id"=>2, "joined_on"=>#<Date: 4906577/2,0,2299161>, "type"=>nil, "id"=>2, "access_level"=>1, "developer_id"=>1}, @developers_log=[], @readonly=true>> expected but was <#<Project:0x46163160 @attributes={"name"=>"Projekt", "type"=>nil, "id"=>10002}, @developers_log=[], @errors #<ActiveRecord::Errors:0x4615fbf0 @base=#<Project:0x46163160 ...>, @errors={}>, @new_record=false, @new_record_before_save=true>>. 2) Failure: test_create(HasAndBelongsToManyAssociationsTest) [./test/associations_test.rb:1378]: <#<Project:0x460fe558 @attributes {"name"=>"Active Controller", "project_id"=>2, "joined_on"=>#<Date: 4906577/2,0,2299161>, "type"=>nil, "id"=>2, "access_level"=>1, "developer_id"=>1}, @developers_log=[], @readonly=true>> expected but was <#<Project:0x4610cc20 @attributes={"name"=>"Projekt", "type"=>nil, "id"=>10006}, @developers_log=[], @errors #<ActiveRecord::Errors:0x46109bc4 @base=#<Project:0x4610cc20 ...>, @errors={}>, @new_record=false, @new_record_before_save=true>>. 884 tests, 3121 assertions, 2 failures, 0 errors rake aborted! Command failed with status (1): [/usr/pkg/ruby184/bin/ruby -Ilib:test:test/...] (See full trace by running task with --trace)