switch to manual is_delete checking to prevent derpie errors from sites deleting

This commit is contained in:
Kyle Drake 2015-02-12 15:55:38 -08:00
parent 0552b4e9b7
commit af2b7a3f86
5 changed files with 8 additions and 16 deletions

View file

@ -5,17 +5,6 @@ def app
end
describe Site do
describe 'destroy' do
it 'should delete events properly' do
site_commented_on = Fabricate :site
site_commenting = Fabricate :site
site_commented_on.add_profile_comment actioning_site_id: site_commenting.id, message: 'hi'
site_commented_on.events_dataset.count.must_equal 1
site_commenting.destroy
site_commented_on.events_dataset.count.must_equal 0
end
end
describe 'can_email' do
it 'should fail if send_emails is false' do
site = Fabricate :site