diff options
Diffstat (limited to 'spec/lib/gitlab/background_migration/legacy_uploads_migrator_spec.rb')
-rw-r--r-- | spec/lib/gitlab/background_migration/legacy_uploads_migrator_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/background_migration/legacy_uploads_migrator_spec.rb b/spec/lib/gitlab/background_migration/legacy_uploads_migrator_spec.rb index 66a1787b2cb..7227f80a062 100644 --- a/spec/lib/gitlab/background_migration/legacy_uploads_migrator_spec.rb +++ b/spec/lib/gitlab/background_migration/legacy_uploads_migrator_spec.rb @@ -24,7 +24,7 @@ RSpec.describe Gitlab::BackgroundMigration::LegacyUploadsMigrator do if with_file upload = create(:upload, :with_file, :attachment_upload, params) - model.update(attachment: upload.retrieve_uploader) + model.update!(attachment: upload.retrieve_uploader) model.attachment.upload else create(:upload, :attachment_upload, params) |