@@ -11,15 +11,6 @@ def test_self_local
1111 assert_equal Gem ::Platform . new ( %w[ x86 darwin 8 ] ) , Gem ::Platform . local
1212 end
1313
14- def test_self_match
15- Gem ::Deprecate . skip_during do
16- assert Gem ::Platform . match ( nil ) , "nil == ruby"
17- assert Gem ::Platform . match ( Gem ::Platform . local ) , "exact match"
18- assert Gem ::Platform . match ( Gem ::Platform . local . to_s ) , "=~ match"
19- assert Gem ::Platform . match ( Gem ::Platform ::RUBY ) , "ruby"
20- end
21- end
22-
2314 def test_self_match_gem?
2415 assert Gem ::Platform . match_gem? ( nil , "json" ) , "nil == ruby"
2516 assert Gem ::Platform . match_gem? ( Gem ::Platform . local , "json" ) , "exact match"
@@ -502,15 +493,6 @@ def test_inspect
502493 assert_equal 1 , result . scan ( /@version=/ ) . size
503494 end
504495
505- def test_gem_platform_match_with_string_argument
506- util_set_arch "x86_64-linux-musl"
507-
508- Gem ::Deprecate . skip_during do
509- assert ( Gem ::Platform . match ( Gem ::Platform . new ( "x86_64-linux" ) ) , "should match Gem::Platform" )
510- assert ( Gem ::Platform . match ( "x86_64-linux" ) , "should match String platform" )
511- end
512- end
513-
514496 def test_constants
515497 assert_equal [ nil , "java" , nil ] , Gem ::Platform ::JAVA . to_a
516498 assert_equal [ "x86" , "mswin32" , nil ] , Gem ::Platform ::MSWIN . to_a
0 commit comments