mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/irb] Clean up a duplicated definition
I simply forgot deleting it. https://github.com/ruby/irb/commit/65399d5e9f
This commit is contained in:
parent
2e183c6273
commit
82b87a8dc4
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue