ruby-changes:44681
From: nobu <ko1@a...>
Date: Sat, 12 Nov 2016 22:24:28 +0900 (JST)
Subject: [ruby-changes:44681] nobu:r56754 (trunk): test_fstring.rb: fix exception
nobu 2016-11-12 22:24:23 +0900 (Sat, 12 Nov 2016) New Revision: 56754 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56754 Log: test_fstring.rb: fix exception * test/-ext-/string/test_fstring.rb (test_singleton_class): fix expected exception class. [ruby-dev:49867] [Bug #12923] Modified files: trunk/test/-ext-/string/test_fstring.rb Index: test/-ext-/string/test_fstring.rb =================================================================== --- test/-ext-/string/test_fstring.rb (revision 56753) +++ test/-ext-/string/test_fstring.rb (revision 56754) @@ -60,7 +60,7 @@ class Test_String_Fstring < Test::Unit:: https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_fstring.rb#L60 def test_singleton_class str = noninterned_name.force_encoding("us-ascii") fstr = Bug::String.fstring(str) - assert_raise(RuntimeError) {fstr.singleton_class} + assert_raise(TypeError) {fstr.singleton_class} end class S < String -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/