* Change: #647 NGワードの入力フォーム * Wip: 画面改造 * テストコード、画面 * Fix: 複数の問題
This commit is contained in:
parent
0d2b415e26
commit
95ab1f729c
33 changed files with 526 additions and 172 deletions
|
@ -425,7 +425,7 @@ RSpec.describe ActivityPub::ProcessAccountService do
|
|||
end
|
||||
|
||||
it 'creates account when ng word is not set' do
|
||||
Setting.ng_words = ['Amazon']
|
||||
Fabricate(:ng_word, keyword: 'Amazon', stranger: false)
|
||||
subject
|
||||
expect(account.reload.display_name).to eq 'Ohagi'
|
||||
|
||||
|
@ -434,7 +434,7 @@ RSpec.describe ActivityPub::ProcessAccountService do
|
|||
end
|
||||
|
||||
it 'does not create account when ng word is set' do
|
||||
Setting.ng_words = ['Ohagi']
|
||||
Fabricate(:ng_word, keyword: 'Ohagi', stranger: false)
|
||||
subject
|
||||
expect(account.reload.display_name).to_not eq 'Ohagi'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue