Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/helpers/emoji_helper_spec.rb')
-rw-r--r--spec/helpers/emoji_helper_spec.rb22
1 files changed, 13 insertions, 9 deletions
diff --git a/spec/helpers/emoji_helper_spec.rb b/spec/helpers/emoji_helper_spec.rb
index 6f4c962c0fb..e16c96c86ed 100644
--- a/spec/helpers/emoji_helper_spec.rb
+++ b/spec/helpers/emoji_helper_spec.rb
@@ -12,10 +12,12 @@ RSpec.describe EmojiHelper do
subject { helper.emoji_icon(emoji_text, options) }
it 'has no options' do
- is_expected.to include('<gl-emoji',
- "title=\"#{emoji_text}\"",
- "data-name=\"#{emoji_text}\"",
- "data-unicode-version=\"#{unicode_version}\"")
+ is_expected.to include(
+ '<gl-emoji',
+ "title=\"#{emoji_text}\"",
+ "data-name=\"#{emoji_text}\"",
+ "data-unicode-version=\"#{unicode_version}\""
+ )
is_expected.not_to include(aria_hidden_option)
end
@@ -23,11 +25,13 @@ RSpec.describe EmojiHelper do
let(:options) { { 'aria-hidden': true } }
it 'applies aria-hidden' do
- is_expected.to include('<gl-emoji',
- "title=\"#{emoji_text}\"",
- "data-name=\"#{emoji_text}\"",
- "data-unicode-version=\"#{unicode_version}\"",
- aria_hidden_option)
+ is_expected.to include(
+ '<gl-emoji',
+ "title=\"#{emoji_text}\"",
+ "data-name=\"#{emoji_text}\"",
+ "data-unicode-version=\"#{unicode_version}\"",
+ aria_hidden_option
+ )
end
end
end