summaryrefslogtreecommitdiff
path: root/spec/migrations/fill_store_uploads_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/fill_store_uploads_spec.rb')
-rw-r--r--spec/migrations/fill_store_uploads_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/migrations/fill_store_uploads_spec.rb b/spec/migrations/fill_store_uploads_spec.rb
index 60eaf982c57..bcb5d45e1c0 100644
--- a/spec/migrations/fill_store_uploads_spec.rb
+++ b/spec/migrations/fill_store_uploads_spec.rb
@@ -9,7 +9,7 @@ RSpec.describe FillStoreUploads do
context 'when store is nil' do
it 'updates store to local' do
- uploads.create(size: 100.kilobytes,
+ uploads.create!(size: 100.kilobytes,
uploader: 'AvatarUploader',
path: path,
store: nil)
@@ -22,7 +22,7 @@ RSpec.describe FillStoreUploads do
context 'when store is set to local' do
it 'does not update store' do
- uploads.create(size: 100.kilobytes,
+ uploads.create!(size: 100.kilobytes,
uploader: 'AvatarUploader',
path: path,
store: 1)
@@ -35,7 +35,7 @@ RSpec.describe FillStoreUploads do
context 'when store is set to object storage' do
it 'does not update store' do
- uploads.create(size: 100.kilobytes,
+ uploads.create!(size: 100.kilobytes,
uploader: 'AvatarUploader',
path: path,
store: 2)