From 83900d2581d3456f3973246778548619f8cd2e74 Mon Sep 17 00:00:00 2001 From: KMY Date: Tue, 9 Apr 2024 09:22:26 +0900 Subject: [PATCH] Fix test --- spec/services/post_status_service_spec.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/spec/services/post_status_service_spec.rb b/spec/services/post_status_service_spec.rb index 1713ddada0..aab50cf7c9 100644 --- a/spec/services/post_status_service_spec.rb +++ b/spec/services/post_status_service_spec.rb @@ -666,8 +666,7 @@ RSpec.describe PostStatusService, type: :service do it 'does not hit ng words for mention to self' do account = Fabricate(:account, username: 'cool', domain: nil) text = 'ng word test @cool' - Form::AdminSettings.new(stranger_mention_from_local_ng: '1').save - Fabricate(:ng_word, keyword: 'test', stranger: true) + Form::AdminSettings.new(ng_words_for_stranger_mention: 'test', stranger_mention_from_local_ng: '1').save status = subject.call(account, text: text) @@ -737,8 +736,7 @@ RSpec.describe PostStatusService, type: :service do target_status = Fabricate(:status) account = target_status.account text = "ng word test BT: #{ActivityPub::TagManager.instance.uri_for(target_status)}" - Form::AdminSettings.new(stranger_mention_from_local_ng: '1').save - Fabricate(:ng_word, keyword: 'test', stranger: true) + Form::AdminSettings.new(ng_words_for_stranger_mention: 'test', stranger_mention_from_local_ng: '1').save status = subject.call(account, text: text)