diff options
author | DJ Mountney <david@twkie.net> | 2017-06-08 20:08:06 +0300 |
---|---|---|
committer | DJ Mountney <david@twkie.net> | 2017-06-08 20:08:06 +0300 |
commit | 2afd2fbcb83baaeee8c66859c08b4acff812dccf (patch) | |
tree | 358657d272213da4171c8f04a6adc844bb71b634 /spec/lib | |
parent | ae6adf165ce7d9a85d7b8886eefdbe96aac2816b (diff) | |
parent | 1d1363e2bb8a0aee7e2849fd463ea415035710d9 (diff) |
Merge branch 'upstream-9-2-security' into master-security-update
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/uploads_transfer_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/lib/gitlab/uploads_transfer_spec.rb b/spec/lib/gitlab/uploads_transfer_spec.rb new file mode 100644 index 00000000000..109559bb01c --- /dev/null +++ b/spec/lib/gitlab/uploads_transfer_spec.rb @@ -0,0 +1,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 |