1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2015-04-09 06:01:27 +00:00
parent 9177eca302
commit 2cbb3d821c
2 changed files with 10 additions and 4 deletions

View file

@ -1,6 +1,9 @@
require 'rubygems/test_case'
require 'rubygems'
require 'rubygems/package_task'
begin
require 'rubygems/package_task'
rescue LoadError
end
class TestGemPackageTask < Gem::TestCase
@ -76,5 +79,5 @@ class TestGemPackageTask < Gem::TestCase
assert_equal 'pkg/nokogiri-1.5.0-java', pkg.package_dir_path
end
end
end if defined?(Rake::PackageTask)