File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -284,13 +284,12 @@ def setup
284284 end
285285
286286 should 'NOT ALLOW by default the deletion of a referenced parent' do
287+ FkTestHasPk . connection . disable_referential_integrity { }
287288 assert_raise ( ActiveRecord ::StatementInvalid ) { @parent . destroy }
288289 end
289290
290291 should 'ALLOW deletion of referenced parent using #disable_referential_integrity block' do
291- assert_nothing_raised ( ActiveRecord ::StatementInvalid ) do
292- FkTestHasPk . connection . disable_referential_integrity { @parent . destroy }
293- end
292+ FkTestHasPk . connection . disable_referential_integrity { @parent . destroy }
294293 end
295294
296295 should 'again NOT ALLOW deletion of referenced parent after #disable_referential_integrity block' do
You can’t perform that action at this time.
0 commit comments