aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_process.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_process.rb
parente3efce6df1aa691e17c59f442b35b4fd129d3a13 (diff)
downloadruby-428ec4ec05c0f5a0c24dacee406854fff623dca4.tar.gz
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_process.rb')
-rw-r--r--test/ruby/test_process.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index e8c4cfa7d9..eff72c78b4 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -403,8 +403,8 @@ class TestProcess < Test::Unit::TestCase
with_tmpchdir {|d|
Dir.mkdir "foo"
system(*PWD, :chdir => "foo", :out => "open_chdir_test")
- assert(File.exist?("open_chdir_test"))
- assert(!File.exist?("foo/open_chdir_test"))
+ assert_file(:exist?, "open_chdir_test")
+ assert_file_not(:exist?, "foo/open_chdir_test")
assert_equal("#{d}/foo", File.read("open_chdir_test").chomp)
}
end