ruby-changes:40322
From: nobu <ko1@a...>
Date: Sat, 31 Oct 2015 12:18:44 +0900 (JST)
Subject: [ruby-changes:40322] nobu:r52403 (trunk): test_exception.rb: get rid of did_you_mean
nobu 2015-10-31 12:18:25 +0900 (Sat, 31 Oct 2015) New Revision: 52403 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52403 Log: test_exception.rb: get rid of did_you_mean * test/ruby/test_exception.rb (test_message_of_name_error): get rid of failure caused by did_you_mean message. [ruby-core:71282] [Bug #11640] Modified files: trunk/test/ruby/test_exception.rb Index: test/ruby/test_exception.rb =================================================================== --- test/ruby/test_exception.rb (revision 52402) +++ test/ruby/test_exception.rb (revision 52403) @@ -723,14 +723,10 @@ $stderr = $stdout; raise "\x82\xa0"') do https://github.com/ruby/ruby/blob/trunk/test/ruby/test_exception.rb#L723 end def test_message_of_name_error - begin + assert_raise_with_message(NameError, /\Aundefined method `foo' for module `#<Module:.*>'$/) do Module.new do module_function :foo end - rescue => e - error = e end - - assert_match /\Aundefined method `foo' for module `#<Module:.*>'\z/, error.message end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/