diff --git a/test/unit/wiki_formating/common_mark_test.rb b/test/unit/wiki_formating/common_mark_test.rb index 4b05d441..d1463e5b 100644 --- a/test/unit/wiki_formating/common_mark_test.rb +++ b/test/unit/wiki_formating/common_mark_test.rb @@ -33,7 +33,7 @@ module WikiFormatting HTML expected = <<~HTML - +

         def foo
           :heart:
diff --git a/test/unit/wiki_formating/markdown_test.rb b/test/unit/wiki_formating/markdown_test.rb
index 65e02cc4..8d400fd5 100644
--- a/test/unit/wiki_formating/markdown_test.rb
+++ b/test/unit/wiki_formating/markdown_test.rb
@@ -27,7 +27,7 @@ module WikiFormatting
                                           disable_emoji_native_support: 1 do
         text = 'A test with a :heart: emoji'
         assert_equal '

A test with a emoji

', + " src=\"http://localhost:3000/#{Additionals::EMOJI_ASSERT_PATH}/emoji_u2764.png\" /> emoji

", @formatter.new(text).to_html.strip end end @@ -38,14 +38,14 @@ module WikiFormatting disable_emoji_native_support: 1 do text = ':heart: and :)' assert_equal '

' \ + " src=\"http://localhost:3000/#{Additionals::EMOJI_ASSERT_PATH}/emoji_u2764.png\" />" \ ' and

', @formatter.new(text).to_html.strip text = ' :) and :heart:' assert_equal '

and' \ '

', + " src=\"http://localhost:3000/#{Additionals::EMOJI_ASSERT_PATH}/emoji_u2764.png\" />

", @formatter.new(text).to_html.strip end end diff --git a/test/unit/wiki_formating/textile_test.rb b/test/unit/wiki_formating/textile_test.rb index 2578d6ae..6f9fd5fb 100644 --- a/test/unit/wiki_formating/textile_test.rb +++ b/test/unit/wiki_formating/textile_test.rb @@ -34,7 +34,7 @@ module WikiFormatting str = 'A test with a :heart: emoji and a :) smiley' @to_test[str] = 'A test with a emoji and a :) smiley' + " src=\"http://localhost:3000/#{Additionals::EMOJI_ASSERT_PATH}/emoji_u2764.png\" /> emoji and a :) smiley" assert_html_output @to_test end end @@ -47,11 +47,11 @@ module WikiFormatting @formatter::RULES << :inline_smileys @to_test[':heart: and :)'] = '' \ + " src=\"http://localhost:3000/#{Additionals::EMOJI_ASSERT_PATH}/emoji_u2764.png\" />" \ ' and ' @to_test[':) and :heart:'] = ' and' \ ' ' + " src=\"http://localhost:3000/#{Additionals::EMOJI_ASSERT_PATH}/emoji_u2764.png\" />" assert_html_output @to_test end end