Skip to content

Commit

Permalink
Fix test failures with RDoc 4 broken by commit rdoc/rdoc@7f0033d
Browse files Browse the repository at this point in the history
  • Loading branch information
Bohuslav Kabrda committed Mar 7, 2013
1 parent f8c0385 commit 11f90fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/rdoc_test.rb
Expand Up @@ -16,13 +16,13 @@ def rdoc_app(&block)
it 'renders inline rdoc strings' do
rdoc_app { rdoc '= Hiya' }
assert ok?
assert_body /<h1[^>]*>Hiya<\/h1>/
assert_body /<h1[^>]*>Hiya(<span><a href=\"#label-Hiya\">&para;<\/a> <a href=\"#documentation\">&uarr;<\/a><\/span>)?<\/h1>/
end

it 'renders .rdoc files in views path' do
rdoc_app { rdoc :hello }
assert ok?
assert_body /<h1[^>]*>Hello From RDoc<\/h1>/
assert_body /<h1[^>]*>Hello From RDoc(<span><a href=\"#label-Hello\+From\+RDoc\">&para;<\/a> <a href=\"#documentation\">&uarr;<\/a><\/span>)?<\/h1>/
end

it "raises error if template not found" do
Expand Down

0 comments on commit 11f90fd

Please sign in to comment.