Project

General

Profile

Actions

Bug #3162

closed

recent rdoc affects tests of rake

Added by mame (Yusuke Endoh) over 14 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2010-04-17 trunk 27376) [i686-linux]
Backport:
[ruby-core:29571]

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
=end


Related issues 1 (0 open1 closed)

Is duplicate of Ruby master - Bug #3076: lib/rake/rdoctask.rb should be removedClosed04/01/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0