gitlab-org--gitlab-foss/spec/lib/gitlab/uploads_transfer_spec.rb

12 lines
322 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Gitlab::UploadsTransfer do
it 'leaves avatar uploads where they are' do
project_with_avatar = create(:empty_project, :with_avatar)
described_class.new.rename_namespace('project', 'project-renamed')
expect(File.exist?(project_with_avatar.avatar.path)).to be_truthy
end
end