diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2021-10-10 23:24:52 -0700 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2021-10-11 15:25:05 +0900 |
commit | 82b87a8dc4d4bfe6436d86d78536cbc79d5f7c5c (patch) | |
tree | c34bf22d11a5da8ef6e1774b2f1449df81da6336 /test/irb/test_cmd.rb | |
parent | 2e183c62736bed809e8edbcf054f5c9d6a837751 (diff) |
[ruby/irb] Clean up a duplicated definition
I simply forgot deleting it.
https://github.com/ruby/irb/commit/65399d5e9f
Diffstat (limited to 'test/irb/test_cmd.rb')
-rw-r--r-- | test/irb/test_cmd.rb | 8 |
1 files changed, 1 insertions, 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 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 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 |