mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 17:02:45 +08:00
fix the build ❤️
This commit is contained in:
parent
7cb194f2db
commit
a960cbd97f
|
@ -51,8 +51,8 @@ describe WordWatcher do
|
|||
context "word boundary" do
|
||||
it "handles word boundary" do
|
||||
Fabricate(:watched_word, word: "love", action: WatchedWord.actions[:require_approval])
|
||||
expect(WordWatcher.new("I Love, bananas.").word_matches_for_action?(:require_approval)[1]).to eq("love")
|
||||
expect(WordWatcher.new("I LOVE; apples.").word_matches_for_action?(:require_approval)[1]).to eq("love")
|
||||
expect(WordWatcher.new("I Love, bananas.").word_matches_for_action?(:require_approval)[1]).to eq("Love")
|
||||
expect(WordWatcher.new("I LOVE; apples.").word_matches_for_action?(:require_approval)[1]).to eq("LOVE")
|
||||
expect(WordWatcher.new("love: is a thing.").word_matches_for_action?(:require_approval)[1]).to eq("love")
|
||||
expect(WordWatcher.new("I love. oranges").word_matches_for_action?(:require_approval)[1]).to eq("love")
|
||||
expect(WordWatcher.new("I :love. pineapples").word_matches_for_action?(:require_approval)[1]).to eq("love")
|
||||
|
|
Loading…
Reference in New Issue
Block a user