aboutsummaryrefslogtreecommitdiffstats
path: root/test/rdoc
diff options
context:
space:
mode:
Diffstat (limited to 'test/rdoc')
-rw-r--r--test/rdoc/test_rdoc_task.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rdoc/test_rdoc_task.rb b/test/rdoc/test_rdoc_task.rb
index 43d458981d..610684e540 100644
--- a/test/rdoc/test_rdoc_task.rb
+++ b/test/rdoc/test_rdoc_task.rb
@@ -1,5 +1,8 @@
require 'rdoc/test_case'
-require 'rake'
+begin
+ require 'rake'
+rescue LoadError
+end
class TestRDocTask < RDoc::TestCase
@@ -166,5 +169,5 @@ class TestRDocTask < RDoc::TestCase
assert_equal %w[-o html] << "--title" << "Test Title Option", rdoc_task.option_list
end
-end
+end if defined?(Rake::Task)