Update test #602
This commit is contained in:
+3
-5
@@ -42,7 +42,7 @@ context "Frontend" do
|
|||||||
assert_equal 'μ†ℱ'.scan(/./), ["μ", "†", "ℱ"]
|
assert_equal 'μ†ℱ'.scan(/./), ["μ", "†", "ℱ"]
|
||||||
end
|
end
|
||||||
|
|
||||||
# this should not match
|
# This should not match
|
||||||
test "broken four space" do
|
test "broken four space" do
|
||||||
page = 'utfh1'
|
page = 'utfh1'
|
||||||
text = %(
|
text = %(
|
||||||
@@ -52,14 +52,12 @@ context "Frontend" do
|
|||||||
four
|
four
|
||||||
)
|
)
|
||||||
|
|
||||||
# don't use h1 or it will be promoted to replace file name
|
|
||||||
# which doesn't generate a normal header link
|
|
||||||
@wiki.write_page(page, :markdown, text,
|
@wiki.write_page(page, :markdown, text,
|
||||||
{ :name => 'user1', :email => 'user1' });
|
{ :name => 'user1', :email => 'user1' });
|
||||||
|
|
||||||
get page
|
get page
|
||||||
|
# <pre>\n <code>one\ntwo\nthree\nfour\n</code>\n</pre>
|
||||||
assert_match /<pre>\n <code>/, last_response.body
|
assert_match /<pre>\n <code>.+<\/code>\n<\/pre>/m, last_response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
test "UTF-8 headers href preserved" do
|
test "UTF-8 headers href preserved" do
|
||||||
|
|||||||
Reference in New Issue
Block a user