aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_case.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_case.rb')
-rw-r--r--test/ruby/test_case.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_case.rb b/test/ruby/test_case.rb
index f9f16d55a2..c4938ee55a 100644
--- a/test/ruby/test_case.rb
+++ b/test/ruby/test_case.rb
@@ -57,11 +57,11 @@ class TestCase < Test::Unit::TestCase
def test_deoptimization
assert_in_out_err(['-e', <<-EOS], '', %w[42], [])
- class Symbol; def ===(o); p 42; true; end; end; case :foo; when :foo; end
+ class Symbol; undef ===; def ===(o); p 42; true; end; end; case :foo; when :foo; end
EOS
assert_in_out_err(['-e', <<-EOS], '', %w[42], [])
- class Fixnum; def ===(o); p 42; true; end; end; case 1; when 1; end
+ class Fixnum; undef ===; def ===(o); p 42; true; end; end; case 1; when 1; end
EOS
end
end