@@ -418,7 +418,7 module ApplicationHelper | |||
|
418 | 418 | :class => ('wiki-page' + (wiki_page ? '' : ' new'))) |
|
419 | 419 | else |
|
420 | 420 | # project or wiki doesn't exist |
|
421 |
|
|
|
421 | all | |
|
422 | 422 | end |
|
423 | 423 | else |
|
424 | 424 | all |
@@ -195,6 +195,9 class ApplicationHelperTest < HelperTestCase | |||
|
195 | 195 | '-[[Another page|Page]] link-' => '<del><a href="/projects/ecookbook/wiki/Another_page" class="wiki-page">Page</a> link</del>', |
|
196 | 196 | # escaping |
|
197 | 197 | '![[Another page|Page]]' => '[[Another page|Page]]', |
|
198 | # project does not exist | |
|
199 | '[[unknowproject:Start]]' => '[[unknowproject:Start]]', | |
|
200 | '[[unknowproject:Start|Page title]]' => '[[unknowproject:Start|Page title]]', | |
|
198 | 201 | } |
|
199 | 202 | @project = Project.find(1) |
|
200 | 203 | to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) } |
General Comments 0
You need to be logged in to leave comments.
Login now