Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix tests with RDoc 4 #660

Merged
merged 1 commit into from

2 participants

@bkabrda

Fixes test failures with RDoc 4 broken by commit rdoc/rdoc@7f0033d

@rkh
Owner
rkh commented

Gemfile needs to be adjusted for this.

@bkabrda

The tests still pass with older rdocs, so I think it's safe to merge without adjusting Gemfile. Am I wrong?

@rkh
Owner
rkh commented

Right, but I added the restriction explicitly for the tests failing with RDoc 4.

@rkh rkh merged commit 5540c80 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/rdoc_test.rb
View
4 test/rdoc_test.rb
@@ -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
Something went wrong with that request. Please try again.