mirror of
https://github.com/discourse/discourse.git
synced 2025-09-04 08:47:37 +08:00
UX: when a post is blocked due to a watched word, message includes the word being blocked
This commit is contained in:
parent
e7a7356986
commit
baf1c385eb
4 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@ describe WatchedWord do
|
|||
expect {
|
||||
result = manager.perform
|
||||
expect(result).to_not be_success
|
||||
expect(result.errors[:base]&.first).to eq(I18n.t('contains_blocked_words'))
|
||||
expect(result.errors[:base]&.first).to eq(I18n.t('contains_blocked_words', word: block_word.word))
|
||||
}.to_not change { Post.count }
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue