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 /test/functional/issues_controller_test.rb | |
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 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 434775e59..52b63f1e0 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -4716,7 +4716,7 @@ class IssuesControllerTest < Redmine::ControllerTest assert_equal 'text/plain', attachment.content_type assert_equal 'test file', attachment.description assert_equal 59, attachment.filesize - assert File.exists?(attachment.diskfile) + assert File.exist?(attachment.diskfile) assert_equal 59, File.size(attachment.diskfile) end @@ -4780,7 +4780,7 @@ class IssuesControllerTest < Redmine::ControllerTest attachment = Attachment.order('id DESC').first assert_equal 'testfile.txt', attachment.filename - assert File.exists?(attachment.diskfile) + assert File.exist?(attachment.diskfile) assert_nil attachment.container assert_select 'input[name=?][value=?]', 'attachments[p0][token]', attachment.token @@ -6289,7 +6289,7 @@ class IssuesControllerTest < Redmine::ControllerTest assert_equal 'text/plain', attachment.content_type assert_equal 'test file', attachment.description assert_equal 59, attachment.filesize - assert File.exists?(attachment.diskfile) + assert File.exist?(attachment.diskfile) assert_equal 59, File.size(attachment.diskfile) mail = ActionMailer::Base.deliveries.last @@ -6323,7 +6323,7 @@ class IssuesControllerTest < Redmine::ControllerTest attachment = Attachment.order('id DESC').first assert_equal 'testfile.txt', attachment.filename - assert File.exists?(attachment.diskfile) + assert File.exist?(attachment.diskfile) assert_nil attachment.container assert_select 'input[name=?][value=?]', 'attachments[p0][token]', attachment.token |