diff options
author | Go MAEDA <maeda@farend.jp> | 2021-12-24 05:30:56 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-12-24 05:30:56 +0000 |
commit | 531144e6ddd7c5829afcdda09a87b630fe723974 (patch) | |
tree | ded78bfb9a3ee2b970ac6bb8a5c26fc56a1b13fe /test/unit | |
parent | 04d0a0a259cc8f4e5df06d59e89233e180183b47 (diff) | |
download | redmine-531144e6ddd7c5829afcdda09a87b630fe723974.tar.gz redmine-531144e6ddd7c5829afcdda09a87b630fe723974.zip |
Fixes for Style/FileWrite offense introduced in RuboCop 1.24.0 (#35136).
git-svn-id: http://svn.redmine.org/redmine/trunk@21322 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/attachment_test.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb index a870e3697..954c44269 100644 --- a/test/unit/attachment_test.rb +++ b/test/unit/attachment_test.rb @@ -362,9 +362,7 @@ class AttachmentTest < ActiveSupport::TestCase a = Attachment.find(20) assert a.disk_directory.blank? # Create a real file for this fixture - File.open(a.diskfile, "w") do |f| - f.write "test file at the root of files directory" - end + File.write(a.diskfile, 'test file at the root of files directory') assert a.readable? Attachment.move_from_root_to_target_directory |