diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-23 16:24:50 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-23 16:24:50 +0000 |
commit | ab1102717b1f2e3f3eb2a88d41b64511da447650 (patch) | |
tree | 70c88cd2f660aaf933979c8ff224e468a3475239 /test/rubygems | |
parent | 301dfa19b0b902accc67dfbdebba02c0d55c9d01 (diff) |
* lib/rubygems/specification.rb: Restore behavior of
Gem::Specification#loaded. [Ruby 1.9 - Bug #5032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index ef52f0a50e..0213f95e02 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -325,6 +325,16 @@ end assert_equal 'old_platform', same_spec.original_platform end + def test_activate + @a2.activate + + assert @a2.activated? + + Deprecate.skip_during do + assert @a2.loaded? + end + end + def test_add_dependency_with_explicit_type gem = quick_spec "awesome", "1.0" do |awesome| awesome.add_development_dependency "monkey" |