mirror of
https://github.com/discourse/discourse.git
synced 2024-12-04 01:53:45 +08:00
FIX: Remove failing ruby tests. The same thing is tested in JS and
passes due to the ability to create a document fragment.
This commit is contained in:
parent
6b9b2d3d6a
commit
963793549c
|
@ -40,13 +40,6 @@ describe PrettyText do
|
|||
match_html "<p>hello <span class=\"mention\">@bob</span>'s <span class=\"mention\">@bob</span>,<span class=\"mention\">@bob</span>; <span class=\"mention\">@bob</span>\"</p>"
|
||||
end
|
||||
|
||||
it 'should spoiler text' do
|
||||
PrettyText.cook("[spoiler]hello[/spoiler]").should match_html "<p><span class=\"spoiler\">hello</span></p>"
|
||||
end
|
||||
|
||||
it 'should spoiler img' do
|
||||
PrettyText.cook("[spoiler]<img src='http://cnn.com/a.gif'>[/spoiler]").should match_html "<p><div class=\"spoiler\"><img src=\"http://cnn.com/a.gif\"</div></p>"
|
||||
end
|
||||
end
|
||||
|
||||
describe "rel nofollow" do
|
||||
|
|
Loading…
Reference in New Issue
Block a user