diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-16 04:02:04 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-16 04:02:04 +0000 |
commit | 66141d47d79f986951068d538b3972d14e7476d4 (patch) | |
tree | 7140459bd8ff11ca621be57d6afc0beb20cf1346 /test/ruby/test_file_exhaustive.rb | |
parent | 41e5fdb20f6bfa9fb62af2edf029a84f74ac970f (diff) | |
download | ruby-66141d47d79f986951068d538b3972d14e7476d4.tar.gz |
* test/ruby/envutil.rb (Test::Unit::Assertions#assert_file): rename from file_assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r-- | test/ruby/test_file_exhaustive.rb | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index 10d04ddf15..94b02c4134 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -120,7 +120,7 @@ class TestFileExhaustive < Test::Unit::TestCase Dir.mktmpdir do |dir| prefix = File.join(dir, "...a") Dir.mkdir(prefix) - file_assertion.exist?(prefix) + assert_file.exist?(prefix) assert_nothing_raised { File.stat(prefix) } @@ -170,9 +170,9 @@ class TestFileExhaustive < Test::Unit::TestCase end def test_exist_p - file_assertion.exist?(@dir) - file_assertion.exist?(@file) - file_assertion.not_exist?(@nofile) + assert_file.exist?(@dir) + assert_file.exist?(@file) + assert_file.not_exist?(@nofile) end def test_readable_p @@ -399,8 +399,8 @@ class TestFileExhaustive < Test::Unit::TestCase def test_rename assert_equal(0, File.rename(@file, @nofile)) - file_assertion.not_exist?(@file) - file_assertion.exist?(@nofile) + assert_file.not_exist?(@file) + assert_file.exist?(@nofile) assert_equal(0, File.rename(@nofile, @file)) assert_raise(Errno::ENOENT) { File.rename(@nofile, @file) } end @@ -809,21 +809,21 @@ class TestFileExhaustive < Test::Unit::TestCase def test_truncate assert_equal(0, File.truncate(@file, 1)) - file_assertion.exist?(@file) + assert_file.exist?(@file) assert_equal(1, File.size(@file)) assert_equal(0, File.truncate(@file, 0)) - file_assertion.exist?(@file) - file_assertion.zero?(@file) + assert_file.exist?(@file) + assert_file.zero?(@file) make_file("foo", @file) assert_raise(Errno::ENOENT) { File.truncate(@nofile, 0) } f = File.new(@file, "w") assert_equal(0, f.truncate(2)) - file_assertion.exist?(@file) + assert_file.exist?(@file) assert_equal(2, File.size(@file)) assert_equal(0, f.truncate(0)) - file_assertion.exist?(@file) - file_assertion.zero?(@file) + assert_file.exist?(@file) + assert_file.zero?(@file) f.close make_file("foo", @file) |