diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-08-09 23:25:49 +0200 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2021-08-09 23:25:49 +0200 |
commit | 8ec4be4233d2bfd9142860b25df639fc23655f0f (patch) | |
tree | e0b7f33c4ae22827a7a56aa9cac5fabdd77ee57f /spec/services/delete_account_service_spec.rb | |
parent | a61645ed30b854a1b4935026801eb5b287954095 (diff) | |
parent | 4ac78e2a066508a54de82f1d910ef2fd36c3d106 (diff) |
Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `Gemfile.lock`: Not a real conflict, upstream-updated dependency (redis) textually too close to glitch-soc-only dependecy. Updated redis gem like upstream did.
Diffstat (limited to 'spec/services/delete_account_service_spec.rb')
-rw-r--r-- | spec/services/delete_account_service_spec.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/services/delete_account_service_spec.rb b/spec/services/delete_account_service_spec.rb index cd7d32d59..b1da97036 100644 --- a/spec/services/delete_account_service_spec.rb +++ b/spec/services/delete_account_service_spec.rb @@ -21,6 +21,8 @@ RSpec.describe DeleteAccountService, type: :service do let!(:favourite_notification) { Fabricate(:notification, account: local_follower, activity: favourite, type: :favourite) } let!(:follow_notification) { Fabricate(:notification, account: local_follower, activity: active_relationship, type: :follow) } + let!(:account_note) { Fabricate(:account_note, account: account) } + subject do -> { described_class.new.call(account) } end @@ -35,8 +37,9 @@ RSpec.describe DeleteAccountService, type: :service do account.active_relationships, account.passive_relationships, account.polls, + account.account_notes, ].map(&:count) - }.from([2, 1, 1, 1, 1, 1, 1]).to([0, 0, 0, 0, 0, 0, 0]) + }.from([2, 1, 1, 1, 1, 1, 1, 1]).to([0, 0, 0, 0, 0, 0, 0, 0]) end it 'deletes associated target records' do |