mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
more tests
This commit is contained in:
parent
ecf50a741c
commit
4c92f05d8d
1 changed files with 1 additions and 1 deletions
|
@ -343,7 +343,7 @@ describe PrettyText do
|
|||
it 'allows table html' do
|
||||
SiteSetting.allow_html_tables = true
|
||||
PrettyText.reset_context
|
||||
table = "<table class='fa-spin'><thead><tr>\n<th>test</th></tr></thead><tbody><tr><td>a</td></tr></tbody></table>"
|
||||
table = "<table class='fa-spin'><thead><tr>\n<th class='fa-spin'>test</th></tr></thead><tbody><tr><td>a</td></tr></tbody></table>"
|
||||
match = "<table class=\"md-table\"><thead><tr> <th>test</th> </tr></thead><tbody><tr><td>a</td></tr></tbody></table>"
|
||||
expect(PrettyText.cook(table)).to match_html(match)
|
||||
|
||||
|
|
Loading…
Reference in a new issue