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 | 1c89b6bd1fff6817e4c424cf365623913aa9e73b (patch) | |
tree | aaeddffef233a6a036fd46425e53d3f7f7a114d3 /test | |
parent | f5b2da3a5325c1ccdca3042b1080639c82c00326 (diff) | |
download | ruby-1c89b6bd1fff6817e4c424cf365623913aa9e73b.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')
-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 |