diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 15:17:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-10-09 15:17:20 +0000 |
commit | 2918f391ddc23b9e8b6552a729cea80d71294372 (patch) | |
tree | 91fa10ff23e0857b72120dcd0d4b239381796161 /test/ruby/test_argf.rb | |
parent | e92ee13c6da5252645bc9bae6a787122b7816916 (diff) |
test/ruby: assert_raise_with_message
* test/ruby: use assert_raise_with_message
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_argf.rb')
-rw-r--r-- | test/ruby/test_argf.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index 1d2ded81be..fb869561a1 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -799,8 +799,7 @@ class TestArgf < Test::Unit::TestCase end argf = ARGF.class.new(*paths) paths.each do |path| - e = assert_raise(Errno::ENOENT) {argf.gets} - assert_match(/- #{Regexp.quote(path)}\z/, e.message) + assert_raise_with_message(Errno::ENOENT, /- #{Regexp.quote(path)}\z/) {argf.gets} end assert_nil(argf.gets, bug4274) end |