Skip to content
Browse files

Merge pull request #126 from hannesg/rdoc_test_fix

adjusted specs to RDoc >= 3.10 ( which outputs header ids )
  • Loading branch information...
2 parents 559573b + ff097e8 commit 01e3a7b11361dd13d6e6430499b2433e6dc62272 @rtomayko committed
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

0 comments on commit 01e3a7b

Please sign in to comment.
Something went wrong with that request. Please try again.