diff options
Diffstat (limited to 'test/rubygems/test_gem_package_task.rb')
-rw-r--r-- | test/rubygems/test_gem_package_task.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test/rubygems/test_gem_package_task.rb b/test/rubygems/test_gem_package_task.rb index 1526e825fe..5b83fc4e3c 100644 --- a/test/rubygems/test_gem_package_task.rb +++ b/test/rubygems/test_gem_package_task.rb @@ -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) |