@@ -833,13 +833,15 EXPECTED | |||||
833 | end |
|
833 | end | |
834 |
|
834 | |||
835 | def test_wiki_links_in_tables |
|
835 | def test_wiki_links_in_tables | |
836 |
t |
|
836 | text = "|[[Page|Link title]]|[[Other Page|Other title]]|\n|Cell 21|[[Last page]]|" | |
837 |
|
|
837 | link1 = link_to("Link title", "/projects/ecookbook/wiki/Page", :class => "wiki-page new") | |
838 |
|
|
838 | link2 = link_to("Other title", "/projects/ecookbook/wiki/Other_Page", :class => "wiki-page new") | |
839 | '</tr><tr><td>Cell 21</td><td><a href="/projects/ecookbook/wiki/Last_page" class="wiki-page new">Last page</a></td></tr>' |
|
839 | link3 = link_to("Last page", "/projects/ecookbook/wiki/Last_page", :class => "wiki-page new") | |
840 | } |
|
840 | result = "<tr><td>#{link1}</td>" + | |
|
841 | "<td>#{link2}</td>" + | |||
|
842 | "</tr><tr><td>Cell 21</td><td>#{link3}</td></tr>" | |||
841 | @project = Project.find(1) |
|
843 | @project = Project.find(1) | |
842 |
|
|
844 | assert_equal "<table>#{result}</table>", textilizable(text).gsub(/[\t\n]/, '') | |
843 | end |
|
845 | end | |
844 |
|
846 | |||
845 | def test_text_formatting |
|
847 | def test_text_formatting |
General Comments 0
You need to be logged in to leave comments.
Login now