2019-08-22 10:57:44 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-06-08 03:32:38 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 18:09:03 +00:00
|
|
|
RSpec.describe Gitlab::UploadsTransfer do
|
2017-06-08 03:32:38 +00:00
|
|
|
it 'leaves avatar uploads where they are' do
|
2017-08-02 19:55:11 +00:00
|
|
|
project_with_avatar = create(:project, :with_avatar)
|
2017-06-08 03:32:38 +00:00
|
|
|
|
|
|
|
described_class.new.rename_namespace('project', 'project-renamed')
|
|
|
|
|
|
|
|
expect(File.exist?(project_with_avatar.avatar.path)).to be_truthy
|
|
|
|
end
|
|
|
|
end
|