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.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.rb')
-rw-r--r-- | test/ruby/test_file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_file.rb b/test/ruby/test_file.rb index e005dc8d69..9c93f16576 100644 --- a/test/ruby/test_file.rb +++ b/test/ruby/test_file.rb @@ -44,7 +44,7 @@ class TestFile < Test::Unit::TestCase bug6487 = '[ruby-core:45203]' f = Tempfile.new(__method__.to_s) f.close - file_assertion.exist?(f.path) + assert_file.exist?(f.path) assert_nothing_raised(bug6487) {File.read(f.path, mode: 'r:utf-8')} assert_nothing_raised(bug6487) {File.read(f.path, mode: 'r:bom|utf-8')} f.close(true) @@ -356,7 +356,7 @@ class TestFile < Test::Unit::TestCase assert_raise(ArgumentError) do open(path + "\0bar", "w") {} end - file_assertion.not_exist?(path) + assert_file.not_exist?(path) end end end |