Source view for Revisions
This commit is contained in:
parent
2801421969
commit
66f62bac1f
6 changed files with 17 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue