require 'rails_helper' require 'pretty_text' describe PrettyText do it "supports details tag" do cooked_html = "
foo\n\n

bar

\n\n
" expect(PrettyText.cook("
foobar
")).to match_html(cooked_html) expect(PrettyText.cook("[details=foo]bar[/details]")).to match_html(cooked_html) end end