aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_io.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 05:46:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-29 05:46:04 +0000
commit921b2d1cfb67bae2941642015fbe35f7e7b81698 (patch)
treed1fe3820094f7bc1b8cb1fb26fec50810901094f /test/ruby/test_io.rb
parente1cc51407329230aab32088ed67f78b0c5c23e8b (diff)
downloadruby-921b2d1cfb67bae2941642015fbe35f7e7b81698.tar.gz
* lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
use more descriptive assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r--test/ruby/test_io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb
index 98b1d7b074..f705a3f2aa 100644
--- a/test/ruby/test_io.rb
+++ b/test/ruby/test_io.rb
@@ -814,7 +814,7 @@ class TestIO < Test::Unit::TestCase
def test_inspect
with_pipe do |r, w|
- assert(r.inspect =~ /^#<IO:fd \d+>$/)
+ assert_match(/^#<IO:fd \d+>$/, r.inspect)
assert_raise(SecurityError) do
safe_4 { r.inspect }
end