mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] Test platform parsing stability
On past versions there were observed cases of inconsistencies when some
platforms were re-parsed.
Ensure that a platform's string representation parses again in a
platform object equal to the original.
6da35ee93c
This commit is contained in:
parent
615f79be3c
commit
f254b673f8
1 changed files with 1 additions and 0 deletions
|
@ -144,6 +144,7 @@ class TestGemPlatform < Gem::TestCase
|
|||
test_cases.each do |arch, expected|
|
||||
platform = Gem::Platform.new arch
|
||||
assert_equal expected, platform.to_a, arch.inspect
|
||||
assert_equal expected, Gem::Platform.new(platform.to_s).to_a, arch.inspect
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue