debian-mirror-gitlab/spec/lib/gitlab/uploads_transfer_spec.rb
2020-08-09 17:41:57 +05:30

13 lines
353 B
Ruby

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