Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Work around running in ruby trunk

  • Loading branch information...
commit fd81f1df3f625ec626ff94470cab615bb80e9997 1 parent fb77bea
drbrain authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_rdoc_parser.rb
View
5 test/test_rdoc_parser.rb
@@ -5,6 +5,11 @@ def test_can_parse
assert_equal(RDoc::Parser.can_parse(__FILE__), RDoc::Parser::Ruby)
readme_file_name = File.join(File.dirname(__FILE__), "..", "README.txt")
+
+ unless File.exist? readme_file_name then # HACK for tests in trunk :/
+ readme_file_name = File.join File.dirname(__FILE__), '..', '..', 'README'
+ end
+
assert_equal(RDoc::Parser.can_parse(readme_file_name), RDoc::Parser::Simple)
binary_file_name = File.join(File.dirname(__FILE__), "binary.dat")
Please sign in to comment.
Something went wrong with that request. Please try again.