1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

envutil.rb: assert_file and assert_file_not

* test/ruby/envutil.rb (assert_file, assert_file_not): more
  descriptive assertions for File predicates.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-10-09 14:18:05 +00:00
parent e3efce6df1
commit 428ec4ec05
8 changed files with 33 additions and 18 deletions

View file

@ -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