summaryrefslogtreecommitdiffstats
path: root/test/extra/redmine_pm
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-12-27 03:20:31 +0000
committerGo MAEDA <maeda@farend.jp>2021-12-27 03:20:31 +0000
commit4db7397d2a46e745da298a4abd5d6f9e3002e2d2 (patch)
treee86884a4edf8e414b6dc32582763458a724e88a2 /test/extra/redmine_pm
parent91c00f51ec9d9ade33d2bb22a8e67c8cf6b29ba8 (diff)
downloadredmine-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 'test/extra/redmine_pm')
-rw-r--r--test/extra/redmine_pm/repository_git_test_pm.rb2
-rw-r--r--test/extra/redmine_pm/repository_subversion_test_pm.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/extra/redmine_pm/repository_git_test_pm.rb b/test/extra/redmine_pm/repository_git_test_pm.rb
index fac1017b6..1cb8ec853 100644
--- a/test/extra/redmine_pm/repository_git_test_pm.rb
+++ b/test/extra/redmine_pm/repository_git_test_pm.rb
@@ -74,7 +74,7 @@ class RedminePmTest::RepositoryGitTest < RedminePmTest::TestCase
Dir.mktmpdir do |dir|
assert_success "clone", git_url, dir
Dir.chdir(dir) do
- assert File.exists?(File.join(dir, "#{filename}"))
+ assert File.exist?(File.join(dir, "#{filename}"))
end
end
end
diff --git a/test/extra/redmine_pm/repository_subversion_test_pm.rb b/test/extra/redmine_pm/repository_subversion_test_pm.rb
index 9934b3e90..ce0d628e6 100644
--- a/test/extra/redmine_pm/repository_subversion_test_pm.rb
+++ b/test/extra/redmine_pm/repository_subversion_test_pm.rb
@@ -305,7 +305,7 @@ class RedminePmTest::RepositorySubversionTest < RedminePmTest::TestCase
assert_success "update"
# checks that the working copy was updated
- assert File.exists?(File.join(dir, "#{filename}_copy"))
+ assert File.exist?(File.join(dir, "#{filename}_copy"))
assert File.directory?(File.join(dir, "#{filename}_dir"))
end
end