diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-08-06 13:34:34 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-08-06 20:35:19 +0000 |
commit | 5acf5522295c947d3118926d1a1077007f615de9 (patch) | |
tree | 868e84cefec51eb92b5c08755e99821d23c94cad /test/unit | |
parent | 7b107d66e84ad2e958d5574cb00770265dd117c2 (diff) | |
download | unicorn-5acf5522295c947d3118926d1a1077007f615de9.tar.gz |
It's better to show errors and backtraces when stuff breaks
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/test_util.rb | 15 |
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 |