mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 02:07:56 +08:00
FIX: remove Nokogumbo references (#13951)
Specs broken after f4720205c0
This commit is contained in:
parent
4c041eb9f5
commit
354c939656
@ -1,6 +1,5 @@
|
|||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "nokogumbo"
|
|
||||||
require "securerandom"
|
require "securerandom"
|
||||||
|
|
||||||
class HtmlToMarkdown
|
class HtmlToMarkdown
|
||||||
|
@ -145,7 +145,7 @@ describe SearchIndexer do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it 'should work with invalid HTML' do
|
it 'should work with invalid HTML' do
|
||||||
post.update!(cooked: "<FD>" * Nokogumbo::DEFAULT_MAX_TREE_DEPTH)
|
post.update!(cooked: "<FD>" * Nokogiri::Gumbo::DEFAULT_MAX_TREE_DEPTH)
|
||||||
|
|
||||||
SearchIndexer.update_posts_index(
|
SearchIndexer.update_posts_index(
|
||||||
post_id: post.id,
|
post_id: post.id,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user