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: 80bbf68e98aa7b1619e1e8551e481dadccb3c0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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