Fix: アカウント削除時エラーが出る問題

This commit is contained in:
KMY 2024-10-09 20:24:12 +09:00
parent 428abf33f2
commit aadde1bbaa
3 changed files with 8 additions and 0 deletions

View file

@ -83,6 +83,8 @@ RSpec.describe DeleteAccountService do
expect { pending_follow_request.reload }.to raise_error(ActiveRecord::RecordNotFound)
expect { pending_status.reload }.to raise_error(ActiveRecord::RecordNotFound)
expect { fetchable_pending_status.reload }.to raise_error(ActiveRecord::RecordNotFound)
expect(ng_rule_history.account_id).to eq Account.representative.id
end
def expect_deletion_of_associated_owned_records