2017-06-08 03:32:38 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Gitlab::UploadsTransfer do
|
|
|
|
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
|