about summary refs log tree commit homepage
path: root/test/unit/test_util.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/test_util.rb')
-rw-r--r--test/unit/test_util.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/test/unit/test_util.rb b/test/unit/test_util.rb
index 377f6b8..b8e4043 100644
--- a/test/unit/test_util.rb
+++ b/test/unit/test_util.rb
@@ -18,8 +18,8 @@ class TestUtil < Test::Unit::TestCase
     assert_equal ext, (fp.external_encoding rescue nil)
     assert_equal int, (fp.internal_encoding rescue nil)
     assert_equal(EXPECT_FLAGS, EXPECT_FLAGS & fp.fcntl(Fcntl::F_GETFL))
-    assert_nothing_raised { tmp.close! }
-    assert_nothing_raised { fp.close }
+    tmp.close!
+    fp.close
   end
 
   def test_reopen_logs_renamed
@@ -43,9 +43,9 @@ class TestUtil < Test::Unit::TestCase
     assert_equal int, (fp.internal_encoding rescue nil)
     assert_equal(EXPECT_FLAGS, EXPECT_FLAGS & fp.fcntl(Fcntl::F_GETFL))
     assert fp.sync
-    assert_nothing_raised { tmp.close! }
-    assert_nothing_raised { to.close! }
-    assert_nothing_raised { fp.close }
+    tmp.close!
+    to.close!
+    fp.close
   end
 
   def test_reopen_logs_renamed_with_encoding
@@ -68,7 +68,7 @@ class TestUtil < Test::Unit::TestCase
         assert fp.sync
       }
     }
-    assert_nothing_raised { tmp.close! }
+    tmp.close!
   end if STDIN.respond_to?(:external_encoding)
 
   def test_reopen_logs_renamed_with_internal_encoding
@@ -94,7 +94,6 @@ class TestUtil < Test::Unit::TestCase
         }
       }
     }
-    assert_nothing_raised { tmp.close! }
+    tmp.close!
   end if STDIN.respond_to?(:external_encoding)
-
 end