search for: test_destroy_all_cascade_delete

Displaying 1 result from an estimated 1 matches for "test_destroy_all_cascade_delete".

2006 Jan 28
1
Unit Tests Behavior
Hi, Working on unit tests and I have a few cascade delete constraints I am testing. The unit tests stop at the first assert_raise test. Is this typical? def test_destroy_all_cascade_delete assert_equal 1, Iep.find(:first).client_id assert_equal 1, Encounter.find(:first).client_id @client.destroy assert_raise(ActiveRecord::RecordNotFound) { Iep.find(1) } <-- Stops testing here assert_raise(ActiveRecord::RecordNotFound) { Encounter.find(1) } end So i...