From 6b3ec75c7f31fbfa72d7fb17626744f40b2a6b73 Mon Sep 17 00:00:00 2001 From: drbrain Date: Sat, 23 Jul 2011 16:05:19 +0000 Subject: * 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/trunk@32652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rubygems/test_gem_specification.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/rubygems') 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" -- cgit v1.2.3