Bug #3162
closedrecent rdoc affects tests of rake
Description
=begin
Hi, Eric Hodel
Now, lib/rdoc/task.rb replaces Rake::RDocTask with RDoc::Task,
which seems to cause failures of tests of rake:
1) Failure:
test_inline_source_is_enabled_by_default(Rake::TestRDocTask) [/home/mame/work/ruby/test/rake/test_rdoc_task.rb:65]:
Failed assertion, no message given.
2) Error:
test_inline_source_option_can_be_disabled(Rake::TestRDocTask):
NoMethodError: undefined method inline_source=' for #<RDoc::Task:0x83bfe90> /home/mame/work/ruby/test/rake/test_rdoc_task.rb:81:in
test_inline_source_option_can_be_disabled'
I don't know why the replacement (compatibility layer?) is needed,
but if I delete it, the failures don't occur.
diff --git a/lib/rdoc/task.rb b/lib/rdoc/task.rb
index 005c516..ac36bdb 100644
--- a/lib/rdoc/task.rb
+++ b/lib/rdoc/task.rb
@@ -251,7 +251,7 @@ module Rake
##
# For backwards compatibility
- RDocTask = RDoc::Task
- #RDocTask = RDoc::Task
end
:startdoc:¶
--
Yusuke Endoh mame@tsg.ne.jp
=end