mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-12-12 08:41:23 -05:00
12 lines
387 B
Ruby
12 lines
387 B
Ruby
require 'rails_helper'
|
|
require 'pretty_text'
|
|
|
|
describe PrettyText do
|
|
|
|
it "supports details tag" do
|
|
cooked_html = "<details><summary>foo</summary>\n\n<p>bar</p>\n\n<p></p></details>"
|
|
expect(PrettyText.cook("<details><summary>foo</summary>bar</details>")).to match_html(cooked_html)
|
|
expect(PrettyText.cook("[details=foo]bar[/details]")).to match_html(cooked_html)
|
|
end
|
|
|
|
end
|