test_proc.rb: remove duplicate test_source_location
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e973bde0d0
commit
60578d061a
@ -406,12 +406,6 @@ class TestProc < Test::Unit::TestCase
|
||||
assert_equal(@@line_of_source_location_test, lineno, 'Bug #2427')
|
||||
end
|
||||
|
||||
def test_source_location
|
||||
file, lineno = method(:source_location_test).source_location
|
||||
assert_match(/^#{ Regexp.quote(__FILE__) }$/, file)
|
||||
assert_equal(@@line_of_source_location_test, lineno, 'Bug #2427')
|
||||
end
|
||||
|
||||
def test_proc_lambda
|
||||
assert_raise(ArgumentError) { proc }
|
||||
assert_raise(ArgumentError) { lambda }
|
||||
|
Loading…
x
Reference in New Issue
Block a user