mirror of
https://github.com/neocities/neocities.git
synced 2025-08-06 01:24:56 +02:00
switch to manual is_delete checking to prevent derpie errors from sites deleting
This commit is contained in:
parent
0552b4e9b7
commit
af2b7a3f86
5 changed files with 8 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue