2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 09:10:25 +08:00

FIX: don't downcase watched words on input since it can break the watched_words_regular_expressions setting

This commit is contained in:
Neil Lalonde 2018-01-09 16:51:45 -05:00
parent daad2291ba
commit 8f21c96ea5
3 changed files with 20 additions and 4 deletions

View file

@ -11,8 +11,8 @@ describe WatchedWord do
expect(described_class.count).to eq(1)
end
it "downcases words" do
expect(described_class.create(word: "ShooT").word).to eq('shoot')
it "doesn't downcase words" do
expect(described_class.create(word: "ShooT").word).to eq('ShooT')
end
it "strips leading and trailing spaces" do