summaryrefslogtreecommitdiff
path: root/test/ruby/test_whileuntil.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-09 14:18:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-10-09 14:18:05 +0000
commit428ec4ec05c0f5a0c24dacee406854fff623dca4 (patch)
tree302eabe363f9211c5ba809c9132700b6eba8ceef /test/ruby/test_whileuntil.rb
parente3efce6df1aa691e17c59f442b35b4fd129d3a13 (diff)
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
Diffstat (limited to 'test/ruby/test_whileuntil.rb')
-rw-r--r--test/ruby/test_whileuntil.rb3
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