mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
Fix test failures with RDoc 4 broken by commit rdoc/rdoc@7f0033d
This commit is contained in:
parent
f8c0385461
commit
11f90fd295
1 changed files with 2 additions and 2 deletions
|
@ -16,13 +16,13 @@ class RdocTest < Test::Unit::TestCase
|
||||||
it 'renders inline rdoc strings' do
|
it 'renders inline rdoc strings' do
|
||||||
rdoc_app { rdoc '= Hiya' }
|
rdoc_app { rdoc '= Hiya' }
|
||||||
assert ok?
|
assert ok?
|
||||||
assert_body /<h1[^>]*>Hiya<\/h1>/
|
assert_body /<h1[^>]*>Hiya(<span><a href=\"#label-Hiya\">¶<\/a> <a href=\"#documentation\">↑<\/a><\/span>)?<\/h1>/
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'renders .rdoc files in views path' do
|
it 'renders .rdoc files in views path' do
|
||||||
rdoc_app { rdoc :hello }
|
rdoc_app { rdoc :hello }
|
||||||
assert ok?
|
assert ok?
|
||||||
assert_body /<h1[^>]*>Hello From RDoc<\/h1>/
|
assert_body /<h1[^>]*>Hello From RDoc(<span><a href=\"#label-Hello\+From\+RDoc\">¶<\/a> <a href=\"#documentation\">↑<\/a><\/span>)?<\/h1>/
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises error if template not found" do
|
it "raises error if template not found" do
|
||||||
|
|
Loading…
Add table
Reference in a new issue