2017-06-07 23:32:38 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Gitlab::UploadsTransfer do
|
|
|
|
it 'leaves avatar uploads where they are' do
|
2017-08-02 15:55:11 -04:00
|
|
|
project_with_avatar = create(:project, :with_avatar)
|
2017-06-07 23:32:38 -04:00
|
|
|
|
|
|
|
described_class.new.rename_namespace('project', 'project-renamed')
|
|
|
|
|
|
|
|
expect(File.exist?(project_with_avatar.avatar.path)).to be_truthy
|
|
|
|
end
|
|
|
|
end
|