Welcome to mirror list, hosted at ThFree Co, Russian Federation.

uploads_transfer_spec.rb « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 109559bb01c038050072c8839a6395059e576112 (plain)
1
2
3
4
5
6
7
8
9
10
11
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