From cd4101f5a8d909df534f73df3f992f86ceb0374c Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 31 Oct 2015 03:18:25 +0000 Subject: 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] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_exception.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index d0ed477916..fd58ed5933 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -723,14 +723,10 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| end def test_message_of_name_error - begin + assert_raise_with_message(NameError, /\Aundefined method `foo' for module `#'$/) do Module.new do module_function :foo end - rescue => e - error = e end - - assert_match /\Aundefined method `foo' for module `#'\z/, error.message end end -- cgit v1.2.3