debian-mirror-gitlab/spec/lib/gitlab/uploads_transfer_spec.rb

12 lines
316 B
Ruby
Raw Normal View History

2015-10-24 18:46:33 +05:30
require 'spec_helper'
2017-08-17 22:00:37 +05:30
describe Gitlab::UploadsTransfer do
it 'leaves avatar uploads where they are' do
2017-09-10 17:25:29 +05:30
project_with_avatar = create(:project, :with_avatar)
2015-10-24 18:46:33 +05:30
2017-08-17 22:00:37 +05:30
described_class.new.rename_namespace('project', 'project-renamed')
2015-10-24 18:46:33 +05:30
2017-08-17 22:00:37 +05:30
expect(File.exist?(project_with_avatar.avatar.path)).to be_truthy
2015-10-24 18:46:33 +05:30
end
end