diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-10 05:54:46 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-12-10 05:54:46 +0000 |
commit | b1ce7e4d4ada3eedc361d90b637ca06274a0ac3d (patch) | |
tree | affedc3593d216a6b5c4d1c27f84a0b3c7b19e46 /activesupport/test | |
parent | c81fff2468bbf597457bf57cd599d2d4be77c715 (diff) | |
download | rails-b1ce7e4d4ada3eedc361d90b637ca06274a0ac3d.tar.gz rails-b1ce7e4d4ada3eedc361d90b637ca06274a0ac3d.tar.bz2 rails-b1ce7e4d4ada3eedc361d90b637ca06274a0ac3d.zip |
Ruby 1.9 compat: File.exists\? -> File.exist\? en masse. References #1689 [Pratik Naik]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8365 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/multibyte_conformance.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/multibyte_conformance.rb b/activesupport/test/multibyte_conformance.rb index dfd77bd6e1..dede3e561d 100644 --- a/activesupport/test/multibyte_conformance.rb +++ b/activesupport/test/multibyte_conformance.rb @@ -10,7 +10,7 @@ class Downloader def self.download(from, to) unless File.exist?(to) $stderr.puts "Downloading #{from} to #{to}" - unless File.exists?(File.dirname(to)) + unless File.exist?(File.dirname(to)) system "mkdir -p #{File.dirname(to)}" end open(from) do |source| @@ -31,7 +31,7 @@ class String end unless ''.respond_to?(:ui) end -Dir.mkdir(CACHE_DIR) unless File.exists?(CACHE_DIR) +Dir.mkdir(CACHE_DIR) unless File.exist?(CACHE_DIR) Downloader.download(UNIDATA_URL + UNIDATA_FILE, CACHE_DIR + UNIDATA_FILE) module ConformanceTest |