summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 08:00:57 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-04 08:00:57 +0000
commita94cbf81e1fcef1f50af631e3b1117c2bf68df7f (patch)
tree641b61173449adc55147598b5719f43445210ba7 /test
parent3b871be4b209c180f99f7e6aa8d0c5c27d22effb (diff)
Merge rubygems master@221bdea
* Fixed https://github.com/rubygems/rubygems/pull/2506 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/rubygems/test_gem_specification.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb
index 4fbb1e73e0..7a26d5918e 100644
--- a/test/rubygems/test_gem_specification.rb
+++ b/test/rubygems/test_gem_specification.rb
@@ -1345,6 +1345,16 @@ dependencies: []
assert_equal '/path/to/file', e.file_path
end
+ def test_initialize_prerelease_version_before_name
+ spec = Gem::Specification.new do |s|
+ s.version = '1.0.0.dev'
+ s.name = 'a'
+ end
+
+ assert_equal "a", spec.name
+ assert_equal "1.0.0.dev", spec.version.to_s
+ end
+
def test__dump
@a2.platform = Gem::Platform.local
@a2.instance_variable_set :@original_platform, 'old_platform'