mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user