Permalink
Browse files

Work around running in ruby trunk

  • Loading branch information...
1 parent fb77bea commit fd81f1df3f625ec626ff94470cab615bb80e9997 drbrain committed Sep 25, 2008
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/test_rdoc_parser.rb
View
@@ -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")

0 comments on commit fd81f1d

Please sign in to comment.