Skip to content

Commit 1f4913d

Browse files
hsbtmatzbot
authored andcommitted
[ruby/did_you_mean] Revert "Alias value to take in old Ruby"
This reverts commit ruby/did_you_mean@15d7b0bfa573. ruby/did_you_mean@86a7daca19
1 parent 6b8dcb7 commit 1f4913d

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

test/did_you_mean/test_ractor_compatibility.rb

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
class RactorCompatibilityTest < Test::Unit::TestCase
66
def test_class_name_suggestion_works_in_ractor
77
assert_ractor(<<~CODE, require_relative: "helper")
8-
class Ractor
9-
alias value take
10-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
11-
128
class ::Book; end
139
include DidYouMean::TestHelper
1410
error = Ractor.new {
@@ -26,10 +22,6 @@ class ::Book; end
2622

2723
def test_key_name_suggestion_works_in_ractor
2824
assert_ractor(<<~CODE, require_relative: "helper")
29-
class Ractor
30-
alias value take
31-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
32-
3325
include DidYouMean::TestHelper
3426
error = Ractor.new {
3527
begin
@@ -49,10 +41,6 @@ class Ractor
4941

5042
def test_method_name_suggestion_works_in_ractor
5143
assert_ractor(<<~CODE, require_relative: "helper")
52-
class Ractor
53-
alias value take
54-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
55-
5644
include DidYouMean::TestHelper
5745
error = Ractor.new {
5846
begin
@@ -71,10 +59,6 @@ class Ractor
7159
if defined?(::NoMatchingPatternKeyError)
7260
def test_pattern_key_name_suggestion_works_in_ractor
7361
assert_ractor(<<~CODE, require_relative: "helper")
74-
class Ractor
75-
alias value take
76-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
77-
7862
include DidYouMean::TestHelper
7963
error = Ractor.new {
8064
begin
@@ -97,10 +81,6 @@ class Ractor
9781

9882
def test_can_raise_other_name_error_in_ractor
9983
assert_ractor(<<~CODE, require_relative: "helper")
100-
class Ractor
101-
alias value take
102-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
103-
10484
class FirstNameError < NameError; end
10585
include DidYouMean::TestHelper
10686
error = Ractor.new {
@@ -118,10 +98,6 @@ class FirstNameError < NameError; end
11898

11999
def test_variable_name_suggestion_works_in_ractor
120100
assert_ractor(<<~CODE, require_relative: "helper")
121-
class Ractor
122-
alias value take
123-
end unless Ractor.method_defined? :value # compat with Ruby 3.4 and olders
124-
125101
include DidYouMean::TestHelper
126102
error = Ractor.new {
127103
in_ractor = in_ractor = 1

0 commit comments

Comments
 (0)