Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Work around running in ruby trunk
  • Loading branch information
drbrain committed Sep 25, 2008
1 parent fb77bea commit fd81f1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_rdoc_parser.rb
Expand Up @@ -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")
Expand Down

0 comments on commit fd81f1d

Please sign in to comment.