Permalink
Browse files

Add test for #602

  • Loading branch information...
1 parent d5d3581 commit 291c6a8fa024c1e17a50ccb9d45365e2dda57dde @bootstraponline bootstraponline committed Dec 7, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 test/test_app.rb
View
@@ -42,6 +42,26 @@
assert_equal 'μ†ℱ'.scan(/./), ["μ", "", ""]
end
+ # this should not match
+ test "broken four space" do
+ page = 'utfh1'
+ text = %(
+ one
+ two
+ three
+ 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,
+ { :name => 'user1', :email => 'user1' });
+
+ get page
+
+ assert_match /<pre>\n <code>/, last_response.body
+ end
+
test "UTF-8 headers href preserved" do
page = 'utfh1'
text = '한글'

0 comments on commit 291c6a8

Please sign in to comment.