diff options
Diffstat (limited to 'test/test_tempfile.rb')
-rw-r--r-- | test/test_tempfile.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_tempfile.rb b/test/test_tempfile.rb index 1b609f4440..bcd953554a 100644 --- a/test/test_tempfile.rb +++ b/test/test_tempfile.rb @@ -112,16 +112,16 @@ class TestTempfile < Test::Unit::TestCase def test_close_and_close_p t = tempfile("foo") - assert !t.closed? + assert_not_predicate(t, :closed?) t.close - assert t.closed? + assert_predicate(t, :closed?) end def test_close_with_unlink_now_true_works t = tempfile("foo") path = t.path t.close(true) - assert t.closed? + assert_predicate(t, :closed?) assert_nil t.path assert_file.not_exist?(path) end @@ -143,7 +143,7 @@ class TestTempfile < Test::Unit::TestCase t = tempfile("foo") path = t.path t.close! - assert t.closed? + assert_predicate(t, :closed?) assert_nil t.path assert_file.not_exist?(path) end |