summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2024-10-17 13:08:26 +0200
committerClaire <claire.github-309c@sitedethib.com>2024-10-17 13:08:26 +0200
commitb88f0f152c9c2d546884018d533bc99d1d795e64 (patch)
treea6254426c352203ea0e4c28d49d03fa292fd29e3
parentaf018df5242e041757227e3acf5310f20de57a76 (diff)
-rw-r--r--spec/services/notify_service_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/services/notify_service_spec.rb b/spec/services/notify_service_spec.rb
index 935b94c7092..f9434a1006d 100644
--- a/spec/services/notify_service_spec.rb
+++ b/spec/services/notify_service_spec.rb
@@ -8,8 +8,8 @@ RSpec.describe NotifyService do
let(:user) { Fabricate(:user) }
let(:recipient) { user.account }
let(:sender) { Fabricate(:account, domain: 'example.com') }
- let(:activity) { Fabricate(:follow, account: sender, target_account: recipient) }
- let(:type) { :follow }
+ let(:activity) { Fabricate(:mention, account: recipient, status: Fabricate(:status, account: sender)) }
+ let(:type) { :mention }
it { expect { subject }.to change(Notification, :count).by(1) }
@@ -98,7 +98,7 @@ RSpec.describe NotifyService do
describe 'email' do
before do
- user.settings.update('notification_emails.follow': enabled)
+ user.settings.update('notification_emails.mention': enabled)
user.save
end
@@ -113,7 +113,7 @@ RSpec.describe NotifyService do
expect(emails.first)
.to have_attributes(
to: contain_exactly(user.email),
- subject: eq(I18n.t('notification_mailer.follow.subject', name: sender.acct))
+ subject: eq(I18n.t('notification_mailer.mention.subject', name: sender.acct))
)
end
end