diff options
author | Edward Faulkner <ef@alum.mit.edu> | 2011-02-04 15:34:44 -0500 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-02-04 19:39:59 -0200 |
commit | 909588d964bf27f20142a0b4d57890114a8d4a7a (patch) | |
tree | 13547fb5224456d7345ceb9a80ab1ed4dac2e8ff /activerecord/test/cases/associations | |
parent | df077604865b12b119be0259575675f45b958524 (diff) | |
download | rails-909588d964bf27f20142a0b4d57890114a8d4a7a.tar.gz rails-909588d964bf27f20142a0b4d57890114a8d4a7a.tar.bz2 rails-909588d964bf27f20142a0b4d57890114a8d4a7a.zip |
Fixing ordering of HABTM association deletion [#6191 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases/associations')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index 30730c7094..55b611ca92 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -365,7 +365,7 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase def test_removing_associations_on_destroy david = DeveloperWithBeforeDestroyRaise.find(1) assert !david.projects.empty? - assert_raise(RuntimeError) { david.destroy } + david.destroy assert david.projects.empty? assert DeveloperWithBeforeDestroyRaise.connection.select_all("SELECT * FROM developers_projects WHERE developer_id = 1").empty? end |