- test 1 test
+ test 1 test
test 2
diff --git a/spec/components/cooked_post_processor_spec.rb b/spec/components/cooked_post_processor_spec.rb
index 9530383a59d..27ceeb6b63a 100644
--- a/spec/components/cooked_post_processor_spec.rb
+++ b/spec/components/cooked_post_processor_spec.rb
@@ -600,7 +600,7 @@ describe CookedPostProcessor do
Google
text.txt (20 Bytes)
-
+
HTML
end
@@ -615,7 +615,7 @@ describe CookedPostProcessor do
Google
text.txt (20 Bytes)
-
+
HTML
end
@@ -628,7 +628,7 @@ describe CookedPostProcessor do
Google
text.txt (20 Bytes)
-
+
HTML
end
@@ -642,7 +642,7 @@ describe CookedPostProcessor do
Google
text.txt (20 Bytes)
-
+
HTML
end
@@ -656,7 +656,7 @@ describe CookedPostProcessor do
Google
text.txt (20 Bytes)
-
+
HTML
end
diff --git a/spec/components/pretty_text_spec.rb b/spec/components/pretty_text_spec.rb
index 5e5ce5fbb7f..4abf96d50bd 100644
--- a/spec/components/pretty_text_spec.rb
+++ b/spec/components/pretty_text_spec.rb
@@ -35,7 +35,7 @@ describe PrettyText do
ddd
@@ -410,7 +410,7 @@ describe PrettyText do
end
it "should strip images, but keep emojis when option is set" do
- emoji_image = " "
+ emoji_image = " "
html = " Hello world #{emoji_image}"
expect(PrettyText.excerpt(html, 100, strip_images: true)).to eq("Hello world heart")
@@ -531,17 +531,17 @@ describe PrettyText do
end
it "should have an option to preserve emoji images" do
- emoji_image = " "
+ emoji_image = " "
expect(PrettyText.excerpt(emoji_image, 100, keep_emoji_images: true)).to match_html(emoji_image)
end
it "should have an option to remap emoji to code points" do
- emoji_image = "I you "
+ emoji_image = "I you "
expect(PrettyText.excerpt(emoji_image, 100, remap_emoji: true)).to match_html("I ❤ you :unknown:")
end
it "should have an option to preserve emoji codes" do
- emoji_code = " "
+ emoji_code = " "
expect(PrettyText.excerpt(emoji_code, 100)).to eq(":heart:")
end
@@ -792,10 +792,10 @@ describe PrettyText do
end
it "replaces skin toned emoji" do
- expect(PrettyText.cook("hello 👱🏿♀️")).to eq("hello
")
- expect(PrettyText.cook("hello 👩🎤")).to eq("hello
")
- expect(PrettyText.cook("hello 👩🏾🎓")).to eq("hello
")
- expect(PrettyText.cook("hello 🤷♀️")).to eq("hello
")
+ expect(PrettyText.cook("hello 👱🏿♀️")).to eq("hello
")
+ expect(PrettyText.cook("hello 👩🎤")).to eq("hello
")
+ expect(PrettyText.cook("hello 👩🏾🎓")).to eq("hello
")
+ expect(PrettyText.cook("hello 🤷♀️")).to eq("hello
")
end
end
@@ -809,10 +809,10 @@ describe PrettyText do
end
it "replaces skin toned emoji" do
- expect(PrettyText.cook("hello 👱🏿♀️")).to eq("hello
")
- expect(PrettyText.cook("hello 👩🎤")).to eq("hello
")
- expect(PrettyText.cook("hello 👩🏾🎓")).to eq("hello
")
- expect(PrettyText.cook("hello 🤷♀️")).to eq("hello
")
+ expect(PrettyText.cook("hello 👱🏿♀️")).to eq("hello
")
+ expect(PrettyText.cook("hello 👩🎤")).to eq("hello
")
+ expect(PrettyText.cook("hello 👩🏾🎓")).to eq("hello
")
+ expect(PrettyText.cook("hello 🤷♀️")).to eq("hello
")
end
it "should not treat a non emoji as an emoji" do
@@ -904,19 +904,19 @@ describe PrettyText do
it "can handle emoji by name" do
expected = <
+
HTML
expect(PrettyText.cook(":smile::sunny:")).to eq(expected.strip)
end
it "handles emoji boundaries correctly" do
cooked = PrettyText.cook("a,:man:t2:,b")
- expected = 'a, ,b
'
+ expected = "a, ,b
"
expect(cooked).to match(expected.strip)
end
it "can handle emoji by translation" do
- expected = '
'
+ expected = "
"
expect(PrettyText.cook(";)")).to eq(expected)
end
diff --git a/spec/fabricators/post_fabricator.rb b/spec/fabricators/post_fabricator.rb
index 2f3aaf0a1b3..6f1a9a91622 100644
--- a/spec/fabricators/post_fabricator.rb
+++ b/spec/fabricators/post_fabricator.rb
@@ -45,12 +45,12 @@ Fabricator(:reply, from: :post) do
end
Fabricator(:post_with_plenty_of_images, from: :post) do
- cooked '
+ cooked <<~HTML
-With an emoji!
-'
+With an emoji!
+HTML
end
Fabricator(:post_with_uploaded_image, from: :post) do
diff --git a/spec/helpers/user_notifications_helper_spec.rb b/spec/helpers/user_notifications_helper_spec.rb
index 32e1f140809..2ca6916fc2d 100644
--- a/spec/helpers/user_notifications_helper_spec.rb
+++ b/spec/helpers/user_notifications_helper_spec.rb
@@ -22,7 +22,7 @@ describe UserNotificationsHelper do
end
it "doesn't count emoji images" do
- with_emoji = "Hi
"
+ with_emoji = "Hi
"
arg = ([with_emoji] + paragraphs).join("\n")
SiteSetting.digest_min_excerpt_length = 50
expect(helper.email_excerpt(arg)).to eq([with_emoji, paragraphs[0]].join)
diff --git a/spec/jobs/rebake_custom_emoji_posts_spec.rb b/spec/jobs/rebake_custom_emoji_posts_spec.rb
index 1d31b769970..026e36bdc32 100644
--- a/spec/jobs/rebake_custom_emoji_posts_spec.rb
+++ b/spec/jobs/rebake_custom_emoji_posts_spec.rb
@@ -8,7 +8,7 @@ RSpec.describe Jobs::RebakeCustomEmojiPosts do
post = Fabricate(:post, raw: 'some post with :test: yay')
expect(post.reload.cooked).to eq(
- "some post with yay
"
+ "some post with yay
"
)
custom_emoji.destroy!
diff --git a/spec/models/user_profile_spec.rb b/spec/models/user_profile_spec.rb
index 98545ffabe9..f4b64bc1d63 100644
--- a/spec/models/user_profile_spec.rb
+++ b/spec/models/user_profile_spec.rb
@@ -126,7 +126,7 @@ describe UserProfile do
end
it 'supports emoji images' do
- expect(user.user_profile.bio_excerpt(500, keep_emoji_images: true)).to eq("hello ")
+ expect(user.user_profile.bio_excerpt(500, keep_emoji_images: true)).to eq("hello ")
end
end