summaryrefslogtreecommitdiffhomepage
path: root/test/t
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-06-28 23:28:24 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-06-28 23:28:24 +0900
commit466a18b0d3a9ac487c713411bd77a918f72a83fb (patch)
tree9dcfc5bf21aa982b83cb73f84156aa9cd1371ae0 /test/t
parentaee1476ebdafd842f9805b470996f4882eb5b6d9 (diff)
downloadmruby-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.rb4
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