diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index 8da51bc4a98866ed0b2bfbb580d434da5670bc2e..cf7c4c51a2e305fadd1fcc1404fe115287557d0c 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