diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-22 02:52:35 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-22 02:52:35 +0000 |
commit | b551e8c8b36766651be4e782e09e3b02e7d14a10 (patch) | |
tree | e164a1ef908bd4451568abf05b688f1593915b81 /test/rubygems/test_gem_specification.rb | |
parent | 65544f575b25b18dc27f9364f973556ddb48538f (diff) | |
download | ruby-b551e8c8b36766651be4e782e09e3b02e7d14a10.tar.gz |
* lib/rubygems: update to 1.3.6.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 27 |
1 files changed, 7 insertions, 20 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index fb5cf67461..5979890aeb 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -1,11 +1,5 @@ -#-- -# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. -# All rights reserved. -# See LICENSE.txt for permissions. -#++ - -require 'stringio' require_relative 'gemutilities' +require 'stringio' require 'rubygems/specification' class TestGemSpecification < RubyGemTestCase @@ -129,7 +123,7 @@ end end def test_self_load - spec = File.join @gemhome, 'specifications', "#{@a2.full_name}.gemspec" + spec = File.join @gemhome, 'specifications', @a2.spec_name gs = Gem::Specification.load spec assert_equal @a2, gs @@ -145,16 +139,6 @@ end assert_equal false, spec.has_unit_tests? end - def test_self_load_legacy_yaml - s = YAML.load StringIO.new(LEGACY_YAML_SPEC) - assert_equal 'keyedlist', s.name - assert_equal '0.4.0', s.version.to_s - assert_equal true, s.has_rdoc? - #assert_equal Date.today, s.date - #assert s.required_ruby_version.satisfied_by?(Gem::Version.new('1')) - assert_equal false, s.has_unit_tests? - end - def test_self_normalize_yaml_input_with_183_yaml input = "!ruby/object:Gem::Specification " assert_equal "--- #{input}", Gem::Specification.normalize_yaml_input(input) @@ -538,8 +522,7 @@ end def test_full_gem_path_double_slash gemhome = @gemhome.sub(/\w\//, '\&/') - @a1.loaded_from = File.join gemhome, 'specifications', - "#{@a1.full_name}.gemspec" + @a1.loaded_from = File.join gemhome, 'specifications', @a1.spec_name assert_equal File.join(@gemhome, 'gems', @a1.full_name), @a1.full_gem_path @@ -730,6 +713,10 @@ end assert_equal( 1, (s2 <=> s1)) end + def test_spec_name + assert_equal 'a-1.gemspec', @a1.spec_name + end + def test_summary assert_equal 'this is a summary', @a1.summary end |