aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_installer.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-20 00:31:12 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-20 00:31:12 +0000
commit8552f7aa680e1f1a31d76dc9038d80248a445960 (patch)
tree29de125ca8389a65e44d42b269a19274b8846b11 /test/rubygems/test_gem_installer.rb
parent347e748bddd42e5a39dcb5c55ac37704a14b9374 (diff)
downloadruby-8552f7aa680e1f1a31d76dc9038d80248a445960.tar.gz
* lib/rubygems: Update to RubyGems master 3de7e0f. Changes:
Only attempt to build extensions for newly-installed gems. This prevents compilation attempts at gem activation time for gems that already have extensions built. Fix crash in the dependency resolver for dependencies that cannot be resolved. * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_installer.rb')
-rw-r--r--test/rubygems/test_gem_installer.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_installer.rb b/test/rubygems/test_gem_installer.rb
index 01b151c089..7ce00f0121 100644
--- a/test/rubygems/test_gem_installer.rb
+++ b/test/rubygems/test_gem_installer.rb
@@ -1346,7 +1346,12 @@ gem 'other', version
@installer.write_spec
assert_path_exists @spec.spec_file
- assert_equal @spec, eval(File.read(@spec.spec_file))
+
+ loaded = Gem::Specification.load @spec.spec_file
+
+ assert_equal @spec, loaded
+
+ assert_equal Gem.rubygems_version, @spec.installed_by_version
end
def test_write_spec_writes_cached_spec