[前][次][番号順一覧][スレッド一覧]

ruby-changes:68372

From: Takashi <ko1@a...>
Date: Mon, 11 Oct 2021 15:25:15 +0900 (JST)
Subject: [ruby-changes:68372] 82b87a8dc4 (master): [ruby/irb] Clean up a duplicated definition

https://git.ruby-lang.org/ruby.git/commit/?id=82b87a8dc4

From 82b87a8dc4d4bfe6436d86d78536cbc79d5f7c5c Mon Sep 17 00:00:00 2001
From: Takashi Kokubun <takashikkbn@g...>
Date: Sun, 10 Oct 2021 23:24:52 -0700
Subject: [ruby/irb] Clean up a duplicated definition

I simply forgot deleting it.

https://github.com/ruby/irb/commit/65399d5e9f
---
 test/irb/test_cmd.rb | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/test/irb/test_cmd.rb b/test/irb/test_cmd.rb
index 8981033122..8eee36badc 100644
--- a/test/irb/test_cmd.rb
+++ b/test/irb/test_cmd.rb
@@ -511,7 +511,7 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L511
 
     def test_show_source_end_finder
       pend if RUBY_ENGINE == 'truffleruby'
-      code = <<~EOS.gsub(/^/, ' ' * 4); eval(code, binding, __FILE__, __LINE__ + 1) unless respond_to?(:show_source_test_method)
+      eval(code = <<-EOS, binding, __FILE__, __LINE__ + 1)
         def show_source_test_method
           unless true
           end
@@ -549,11 +549,5 @@ module TestIRB https://github.com/ruby/ruby/blob/trunk/test/irb/test_cmd.rb#L549
       assert_empty err
       assert_match(/^From: .+ @ line \d+ :\n/, out)
     end
-
-    # This method is used for testing show_source command
-    def show_source_test_method
-      unless true
-      end
-    end
   end
 end
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]