diff options
Diffstat (limited to 'test/ruby/test_whileuntil.rb')
-rw-r--r-- | test/ruby/test_whileuntil.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_whileuntil.rb b/test/ruby/test_whileuntil.rb index 5628317cb8..5f48f2fd50 100644 --- a/test/ruby/test_whileuntil.rb +++ b/test/ruby/test_whileuntil.rb @@ -1,5 +1,6 @@ require 'test/unit' require 'tmpdir' +require_relative 'envutil' class TestWhileuntil < Test::Unit::TestCase def test_while @@ -68,7 +69,7 @@ class TestWhileuntil < Test::Unit::TestCase tmp.close File.unlink tmpfilename or `/bin/rm -f "#{tmpfilename}"` - assert(!File.exist?(tmpfilename)) + assert_file_not(:exist?, tmpfilename) } end |