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

@@ -8,7 +8,7 @@ RSpec.describe Jobs::RebakeCustomEmojiPosts do
post = Fabricate(:post, raw: 'some post with :test: yay')
expect(post.reload.cooked).to eq(
"<p>some post with <img src=\"#{upload.url}?v=5\" title=\":test:\" class=\"emoji emoji-custom\" alt=\":test:\"> yay</p>"
"<p>some post with <img src=\"#{upload.url}?v=#{Emoji::EMOJI_VERSION}\" title=\":test:\" class=\"emoji emoji-custom\" alt=\":test:\"> yay</p>"
)
custom_emoji.destroy!