mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 19:44:01 +02:00
[ruby/irb] Clean up a duplicated definition
I simply forgot deleting it.
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
|
def test_show_source_end_finder
|
||||||
pend if RUBY_ENGINE == 'truffleruby'
|
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
|
def show_source_test_method
|
||||||
unless true
|
unless true
|
||||||
end
|
end
|
||||||
|
@ -549,11 +549,5 @@ module TestIRB
|
||||||
assert_empty err
|
assert_empty err
|
||||||
assert_match(/^From: .+ @ line \d+ :\n/, out)
|
assert_match(/^From: .+ @ line \d+ :\n/, out)
|
||||||
end
|
end
|
||||||
|
|
||||||
# This method is used for testing show_source command
|
|
||||||
def show_source_test_method
|
|
||||||
unless true
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue