2
0
Fork 0
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:
Neil Lalonde 2018-02-28 11:22:04 -05:00
parent e7a7356986
commit baf1c385eb
4 changed files with 6 additions and 6 deletions

View file

@ -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