aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_specification.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-18 21:56:18 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-18 21:56:18 +0000
commit08aa6d59a2bc35556125d373f90f5286440c6f84 (patch)
tree532694033c6b495c4355b9f35a1a8b60497ad103 /test/rubygems/test_gem_specification.rb
parent9f9b47671052072a305275b99d7e132cf17fbc79 (diff)
downloadruby-08aa6d59a2bc35556125d373f90f5286440c6f84.tar.gz
* lib/rubygems: Update to RubyGems master 0a3814b. Changes:
Fixed extension directory in Gem::Specification#require_paths. Allow installation of gems when $HOME is nonexistent or unwritable. Use proper API in InstallCommand. Improve support for path option in gem dependency files. Remove warnings. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r--test/rubygems/test_gem_specification.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 0fd4a2e224..d893a7191e 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1659,12 +1659,11 @@ dependencies: []
@ext.require_path = 'lib'
- lib = Pathname File.join @ext.gem_dir, 'lib'
+ ext_install_dir = Pathname(@ext.extension_install_dir)
+ full_gem_path = Pathname(@ext.full_gem_path)
+ relative_install_dir = ext_install_dir.relative_path_from full_gem_path
- ext_install_dir =
- Pathname(@ext.extension_install_dir).relative_path_from lib
-
- assert_equal ['lib', ext_install_dir.to_s], @ext.require_paths
+ assert_equal ['lib', relative_install_dir.to_s], @ext.require_paths
ensure
RbConfig::CONFIG['ENABLE_SHARED'] = enable_shared
end