diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-09 06:01:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-04-09 06:01:27 +0000 |
commit | 2cbb3d821c41934f080266a8b88879dbaa9ca66f (patch) | |
tree | 431d7c39ce32970b2e9be1f02d141d7ba0dd89e0 /test/rdoc | |
parent | 9177eca3025ee39f0772ce61bfcabf4294411bea (diff) | |
download | ruby-2cbb3d821c41934f080266a8b88879dbaa9ca66f.tar.gz |
skip rake dependent tests
rake is not available until installation now, so skip rake
dependent tests unless it can load.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc')
-rw-r--r-- | test/rdoc/test_rdoc_task.rb | 7 |
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) |