diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-31 03:18:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-31 03:18:25 +0000 |
commit | cd4101f5a8d909df534f73df3f992f86ceb0374c (patch) | |
tree | aaeddffef233a6a036fd46425e53d3f7f7a114d3 /test/ruby/test_exception.rb | |
parent | 175279c114e5cda9fd55cb7b9f6e1b339c826817 (diff) | |
download | ruby-cd4101f5a8d909df534f73df3f992f86ceb0374c.tar.gz |
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
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 6 |
1 files changed, 1 insertions, 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 `#<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 |