diff options
author | Hiroshi SHIBATA <[email protected]> | 2025-06-04 14:29:53 +0900 |
---|---|---|
committer | git <[email protected]> | 2025-06-04 06:14:27 +0000 |
commit | 1f4913db97d2262c8ffc4244ca0a39349ff62b23 (patch) | |
tree | 2c2b92906dff843d5d244a0ede41d5c57d7d5920 /test | |
parent | 6b8dcb7c8f13f13b31d610f38ff677d4e5ed8e56 (diff) |
[ruby/did_you_mean] Revert "Alias value to take in old Ruby"
This reverts commit https://github.com/ruby/did_you_mean/commit/15d7b0bfa573.
https://github.com/ruby/did_you_mean/commit/86a7daca19
Diffstat (limited to 'test')
-rw-r--r-- | test/did_you_mean/test_ractor_compatibility.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/test/did_you_mean/test_ractor_compatibility.rb b/test/did_you_mean/test_ractor_compatibility.rb index dfc9dc714a..3166d0b6c5 100644 --- a/test/did_you_mean/test_ractor_compatibility.rb +++ b/test/did_you_mean/test_ractor_compatibility.rb @@ -5,10 +5,6 @@ return if not DidYouMean::TestHelper.ractor_compatible? class RactorCompatibilityTest < Test::Unit::TestCase def test_class_name_suggestion_works_in_ractor assert_ractor(<<~CODE, require_relative: "helper") - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - class ::Book; end include DidYouMean::TestHelper error = Ractor.new { @@ -26,10 +22,6 @@ class RactorCompatibilityTest < Test::Unit::TestCase def test_key_name_suggestion_works_in_ractor assert_ractor(<<~CODE, require_relative: "helper") - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - include DidYouMean::TestHelper error = Ractor.new { begin @@ -49,10 +41,6 @@ class RactorCompatibilityTest < Test::Unit::TestCase def test_method_name_suggestion_works_in_ractor assert_ractor(<<~CODE, require_relative: "helper") - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - include DidYouMean::TestHelper error = Ractor.new { begin @@ -71,10 +59,6 @@ class RactorCompatibilityTest < Test::Unit::TestCase if defined?(::NoMatchingPatternKeyError) def test_pattern_key_name_suggestion_works_in_ractor assert_ractor(<<~CODE, require_relative: "helper") - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - include DidYouMean::TestHelper error = Ractor.new { begin @@ -97,10 +81,6 @@ class RactorCompatibilityTest < Test::Unit::TestCase def test_can_raise_other_name_error_in_ractor assert_ractor(<<~CODE, require_relative: "helper") - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - class FirstNameError < NameError; end include DidYouMean::TestHelper error = Ractor.new { @@ -118,10 +98,6 @@ class RactorCompatibilityTest < Test::Unit::TestCase def test_variable_name_suggestion_works_in_ractor assert_ractor(<<~CODE, require_relative: "helper") - class Ractor - alias value take - end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders - include DidYouMean::TestHelper error = Ractor.new { in_ractor = in_ractor = 1 |