From adbc4dddbcd723d628a378d04864abe67c218ca4 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 14 Oct 2010 00:12:00 -0700 Subject: [PATCH] added pending spec for aspect removal on account deletion --- spec/models/user_spec.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 8da51bc4a..cf7c4c51a 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -86,6 +86,16 @@ describe User do user.should_receive(:remove_person) user.destroy end + + + it 'should remove all aspects' do + pending "this should use :dependant => :destroy on the many assoc...but that screws this test suite..." + aspects = user.aspects + user.destroy + proc{ aspects.reload }.should raise_error /does not exist/ + + end + describe '#remove_person' do it 'should remove the person object' do