uses emoji versions for specs (#6276)

This commit is contained in:
Joffrey JAFFEUX
2018-08-16 13:45:30 +02:00
committed by GitHub
parent 3fbf7b164d
commit 10a3499d68
7 changed files with 28 additions and 28 deletions

View File

@ -22,7 +22,7 @@ describe UserNotificationsHelper do
end
it "doesn't count emoji images" do
with_emoji = "<p>Hi <img src=\"/images/emoji/twitter/smile.png?v=5\" title=\":smile:\" class=\"emoji\" alt=\":smile:\"></p>"
with_emoji = "<p>Hi <img src=\"/images/emoji/twitter/smile.png?v=#{Emoji::EMOJI_VERSION}\" title=\":smile:\" class=\"emoji\" alt=\":smile:\"></p>"
arg = ([with_emoji] + paragraphs).join("\n")
SiteSetting.digest_min_excerpt_length = 50
expect(helper.email_excerpt(arg)).to eq([with_emoji, paragraphs[0]].join)