Permalink
Browse files

Update test #602

  • Loading branch information...
1 parent 291c6a8 commit 144f9959c980296a89205fb9da7634fb9e1e3623 @bootstraponline bootstraponline committed Dec 8, 2012
Showing with 3 additions and 5 deletions.
  1. +3 −5 test/test_app.rb
View
@@ -42,7 +42,7 @@
assert_equal 'μ†ℱ'.scan(/./), ["μ", "", ""]
end
- # this should not match
+ # This should not match
test "broken four space" do
page = 'utfh1'
text = %(
@@ -52,14 +52,12 @@
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
+ # <pre>\n <code>one\ntwo\nthree\nfour\n</code>\n</pre>
+ assert_match /<pre>\n <code>.+<\/code>\n<\/pre>/m, last_response.body
end
test "UTF-8 headers href preserved" do

0 comments on commit 144f995

Please sign in to comment.