diff options
author | Go MAEDA <maeda@farend.jp> | 2021-12-27 03:20:31 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-12-27 03:20:31 +0000 |
commit | 4db7397d2a46e745da298a4abd5d6f9e3002e2d2 (patch) | |
tree | e86884a4edf8e414b6dc32582763458a724e88a2 /lib/tasks/testing.rake | |
parent | 91c00f51ec9d9ade33d2bb22a8e67c8cf6b29ba8 (diff) | |
download | redmine-4db7397d2a46e745da298a4abd5d6f9e3002e2d2.tar.gz redmine-4db7397d2a46e745da298a4abd5d6f9e3002e2d2.zip |
Use File.exist? instead of deprecated File.exists? (#36358).
git-svn-id: http://svn.redmine.org/redmine/trunk@21327 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks/testing.rake')
-rw-r--r-- | lib/tasks/testing.rake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index 6a44c3eb7..3088a4c2d 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -31,7 +31,7 @@ namespace :test do desc "Creates a test subversion repository" task :subversion => :create_dir do repo_path = "tmp/test/subversion_repository" - unless File.exists?(repo_path) + unless File.exist?(repo_path) system "svnadmin create #{repo_path}" system "gunzip < test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load #{repo_path}" end @@ -40,7 +40,7 @@ namespace :test do desc "Creates a test mercurial repository" task :mercurial => :create_dir do repo_path = "tmp/test/mercurial_repository" - unless File.exists?(repo_path) + unless File.exist?(repo_path) bundle_path = "test/fixtures/repositories/mercurial_repository.hg" system "hg init #{repo_path}" system "hg -R #{repo_path} pull #{bundle_path}" @@ -48,7 +48,7 @@ namespace :test do end def extract_tar_gz(prefix) - unless File.exists?("tmp/test/#{prefix}_repository") + unless File.exist?("tmp/test/#{prefix}_repository") # system "gunzip < test/fixtures/repositories/#{prefix}_repository.tar.gz | tar -xv -C tmp/test" system "tar -xvz -C tmp/test -f test/fixtures/repositories/#{prefix}_repository.tar.gz" end |