Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

adjusted specs to RDoc >= 3.10 ( which outputs header ids )

  • Loading branch information...
commit ff097e8722056dfef6ac4523d406bdbca6eae87d 1 parent e13a336
@hannesg hannesg authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/tilt_rdoctemplate_test.rb
View
4 test/tilt_rdoctemplate_test.rb
@@ -12,12 +12,12 @@ class RDocTemplateTest < Test::Unit::TestCase
test "preparing and evaluating the template with #render" do
template = Tilt::RDocTemplate.new { |t| "= Hello World!" }
- assert_equal "<h1>Hello World!</h1>", template.render.strip
+ assert_equal "<h1 id=\"label-Hello+World%21\">Hello World!</h1>", template.render.strip
end
test "can be rendered more than once" do
template = Tilt::RDocTemplate.new { |t| "= Hello World!" }
- 3.times { assert_equal "<h1>Hello World!</h1>", template.render.strip }
+ 3.times { assert_equal "<h1 id=\"label-Hello+World%21\">Hello World!</h1>", template.render.strip }
end
end
rescue LoadError => boom
Please sign in to comment.
Something went wrong with that request. Please try again.