Links in Published Webs

Links in the 'show' action should be to the 'show' action.
Links in the 'published' action should be to the 'published' action.
Try to focus, Distler!
This commit is contained in:
Jacques Distler 2009-02-01 16:17:14 -06:00
parent 1cdf0536c1
commit 43aadecc99
2 changed files with 18 additions and 3 deletions

View file

@ -319,6 +319,13 @@ class WikiControllerTest < Test::Unit::TestCase
assert_response(:success)
assert_equal @home, r.template_objects['page']
assert_match /<a class='existingWikiWord' href='http:\/\/test.host\/wiki1\/published\/ThatWay'>That Way<\/a>/, r.body
r = process('show', 'web' => 'wiki1', 'id' => 'HomePage')
assert_response(:success)
assert_equal @home, r.template_objects['page']
assert_match /<a class='existingWikiWord' href='http:\/\/test.host\/wiki1\/show\/ThatWay'>That Way<\/a>/, r.body
end