mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 14:31:03 +08:00
DEV: Refactor excluding audio/video URLs from search result blurbs
Followup to 580a4a82
This commit is contained in:
@ -22,7 +22,7 @@ describe Search do
|
||||
|
||||
link to an audio file: https://somesite.com/content/file123.m4a
|
||||
|
||||
link to a video file: https://somesite.com/content/somethingelse.mov
|
||||
link to a video file: https://somesite.com/content/somethingelse.MOV
|
||||
RAW
|
||||
result = Search::GroupedSearchResults.blurb_for(cooked)
|
||||
expect(result).to eq("link to an external page: https://google.com/?u=bar link to an audio file: #{I18n.t("search.audio")} link to a video file: #{I18n.t("search.video")}")
|
||||
|
Reference in New Issue
Block a user