rdoc/rdoc — pull request #114 by erikh (2012-04-11 19:31:43+00:00)
Title: Test fixes

This is a set of fixes for these three failing tests:

```
Finished tests in 9.970302s, 168.5004 tests/s, 379.5271 assertions/s.

1) Failure:
test_parse_copy_files_file_relative(TestRDocOptions) [/Users/erikh/repos/mine/rdoc/test/test_rdoc_options.rb:179]:
--- expected
+++ actual
@@ -1 +1 @@
-["/Users/erikh/repos/mine/rdoc/test/test_rdoc_options.rb"]
+["test_rdoc_options.rb"]

2) Failure:
test_encode_with_trim_paths(TestRDocOptions) [/Users/erikh/repos/mine/rdoc/test/test_rdoc_options.rb:121]:
--- expected
+++ actual
@@ -1 +1 @@
-["/private/tmp/d20120411-52177-1087vt1/project/subdir"]
+["subdir"]

3) Failure:
test_parse_copy_files_directory_relative(TestRDocOptions) [/Users/erikh/repos/mine/rdoc/test/test_rdoc_options.rb:192]:
--- expected
+++ actual
@@ -1 +1 @@
-["/Users/erikh/repos/mine/rdoc"]
+["."]

```

The above fails because sanitize_path is not applied during option parsing. I have applied this during option parsing (with exceptions for absolute paths) and fixed a small nitpick about shadowing the 'path' variable in the reject block.

Hope this helps, always happy to change things.

Note this includes the patch from #113 (as I couldn't work with testing otherwise), so I'm happy to rewrite depending on the resolution there.