Solve minor issue involving Preview title (#1417)

This commit is contained in:
Dawa Ometto
2019-09-11 15:47:41 +02:00
committed by GitHub
parent 0fda253457
commit d55a3432a2
3 changed files with 9 additions and 3 deletions
+2 -1
View File
@@ -434,8 +434,9 @@ context "Frontend" do
end
test "previews content" do
post "/gollum/preview", :content => 'abc', :format => 'markdown'
post "/gollum/preview", :content => 'abc', :format => 'markdown', :page => 'Samewise%20Gamgee.mediawiki'
assert last_response.ok?
assert last_response.body.include?('Samewise Gamgee</h1>')
end
test "previews content on the first page of an empty wiki" do