Merge pull request #4875 from shuujii/remove-location-info-from-Exception-inspect

Remove location info from `Exception#inspect`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2019-12-18 01:55:23 +09:00
committed by GitHub
4 changed files with 8 additions and 59 deletions
+3 -1
View File
@@ -352,8 +352,10 @@ assert('Exception 19') do
assert_equal [true, true], Class4Exception19.new.a
end
assert('Exception#inspect without message') do
assert('Exception#inspect') do
assert_equal "Exception", Exception.new.inspect
assert_equal "Exception", Exception.new("").inspect
assert_equal "error! (Exception)", Exception.new("error!").inspect
end
assert('Exception#backtrace') do