diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-23 00:09:53 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-23 00:09:53 +0300 |
commit | d6d1051383d42211e5f4d2752d60f946f21df1b7 (patch) | |
tree | e9f8a0c60c17ebc26a96e5349656d12d9aeb2a7f /spec/support/renameable_upload.rb | |
parent | 0a5e00b6914944295b31ce10ffd5429cbe9fae89 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/renameable_upload.rb')
-rw-r--r-- | spec/support/renameable_upload.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/renameable_upload.rb b/spec/support/renameable_upload.rb index f7f00181605..08e8d07ed4d 100644 --- a/spec/support/renameable_upload.rb +++ b/spec/support/renameable_upload.rb @@ -5,7 +5,7 @@ class RenameableUpload < SimpleDelegator # Get a fixture file with a new unique name, and the same extension def self.unique_file(name) - upload = new(fixture_file_upload("spec/fixtures/#{name}")) + upload = new(Rack::Test::UploadedFile.new("spec/fixtures/#{name}")) ext = File.extname(name) new_name = File.basename(FactoryBot.generate(:filename), '.*') upload.original_filename = new_name + ext |