DEV: Refactor excluding audio/video URLs from search result blurbs

Followup to 580a4a82
This commit is contained in:
Penar Musaraj
2019-10-31 09:13:24 -04:00
parent c5e67726fd
commit f8b72d9835
3 changed files with 11 additions and 5 deletions

View File

@ -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")}")