summaryrefslogtreecommitdiff
path: root/spec/migrations
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations')
-rw-r--r--spec/migrations/track_untracked_uploads_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/migrations/track_untracked_uploads_spec.rb b/spec/migrations/track_untracked_uploads_spec.rb
index 95496696bc6..83eb6bbd537 100644
--- a/spec/migrations/track_untracked_uploads_spec.rb
+++ b/spec/migrations/track_untracked_uploads_spec.rb
@@ -41,15 +41,13 @@ describe TrackUntrackedUploads, :migration, :sidekiq do
component = 'a'*255
long_path = [
- CarrierWave.root,
'uploads',
- [component] * Namespace::NUMBER_OF_ANCESTORS_ALLOWED, # namespaces
- component, # project
+ component, # project.full_path
component # filename
].flatten.join('/')
record = UntrackedFile.create!(path: long_path)
- expect(record.reload.path.size).to eq(5711)
+ expect(record.reload.path.size).to eq(519)
end
context 'with tracked and untracked uploads' do