diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-28 23:28:24 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-06-28 23:28:24 +0900 |
| commit | 466a18b0d3a9ac487c713411bd77a918f72a83fb (patch) | |
| tree | 9dcfc5bf21aa982b83cb73f84156aa9cd1371ae0 /test/t | |
| parent | aee1476ebdafd842f9805b470996f4882eb5b6d9 (diff) | |
| download | mruby-466a18b0d3a9ac487c713411bd77a918f72a83fb.tar.gz mruby-466a18b0d3a9ac487c713411bd77a918f72a83fb.zip | |
Remove redundant use of `Object#to_s` in interpolation.
Diffstat (limited to 'test/t')
| -rw-r--r-- | test/t/kernel.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/t/kernel.rb b/test/t/kernel.rb index aff2dd461..40a3482f8 100644 --- a/test/t/kernel.rb +++ b/test/t/kernel.rb @@ -387,7 +387,7 @@ assert('Kernel#method_missing', '15.3.1.3.30') do begin c.no_method_named_this rescue NoMethodError => e - assert_equal "undefined method 'no_method_named_this' for #{c.to_s}", e.message + assert_equal "undefined method 'no_method_named_this' for #{c}", e.message end class NoInspectClass @@ -397,7 +397,7 @@ assert('Kernel#method_missing', '15.3.1.3.30') do begin d.no_method_named_this rescue NoMethodError => e - assert_equal "undefined method 'no_method_named_this' for #{d.to_s}", e.message + assert_equal "undefined method 'no_method_named_this' for #{d}", e.message end end |
