Source view for Revisions

This commit is contained in:
Jacques Distler 2011-08-27 21:58:14 -05:00
parent 2801421969
commit 66f62bac1f
6 changed files with 17 additions and 2 deletions

View file

@ -341,6 +341,13 @@ class WikiControllerTest < ActionController::TestCase
%{hat SmartEngineGUI})), r.body
end
def test_source_with_revision
r = process('source', 'web' => 'wiki1', 'id' => 'HomePage', 'rev' => '1')
assert_response(:success)
assert_match Regexp.new(Regexp.escape(%{First revision of the HomePage})), r.body
end
def test_published
set_web_property :published, true