diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 00:12:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-10-20 00:12:08 +0300 |
commit | 840c85c174e4f134bdce103b8226d5a2a7bcd4ac (patch) | |
tree | db0e17d07c19265e3696bafe9bf570114b946dbb /spec/helpers | |
parent | ee2c09733d98492dcd992c567e0b44ab2838f798 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/emoji_helper_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/helpers/emoji_helper_spec.rb b/spec/helpers/emoji_helper_spec.rb index 15e4ce03960..6f4c962c0fb 100644 --- a/spec/helpers/emoji_helper_spec.rb +++ b/spec/helpers/emoji_helper_spec.rb @@ -6,6 +6,7 @@ RSpec.describe EmojiHelper do describe '#emoji_icon' do let(:options) { {} } let(:emoji_text) { 'rocket' } + let(:unicode_version) { '6.0' } let(:aria_hidden_option) { "aria-hidden=\"true\"" } subject { helper.emoji_icon(emoji_text, options) } @@ -14,7 +15,7 @@ RSpec.describe EmojiHelper do is_expected.to include('<gl-emoji', "title=\"#{emoji_text}\"", "data-name=\"#{emoji_text}\"", - "data-unicode-version=\"#{::Gitlab::Emoji.emoji_unicode_version(emoji_text)}\"") + "data-unicode-version=\"#{unicode_version}\"") is_expected.not_to include(aria_hidden_option) end @@ -25,7 +26,7 @@ RSpec.describe EmojiHelper do is_expected.to include('<gl-emoji', "title=\"#{emoji_text}\"", "data-name=\"#{emoji_text}\"", - "data-unicode-version=\"#{::Gitlab::Emoji.emoji_unicode_version(emoji_text)}\"", + "data-unicode-version=\"#{unicode_version}\"", aria_hidden_option) end end |