correct invalid spec

This commit is contained in:
Sam 2018-08-31 15:06:30 +10:00
parent e1975e293f
commit 1866a8e8da

View File

@ -16,8 +16,9 @@ RSpec.describe Jobs::FixOutOfSyncUserUploadedAvatar do
custom_upload2 = Fabricate(:upload, user: user_out_of_sync)
gravatar_upload2 = Fabricate(:upload, user: user_out_of_sync)
prev_gravatar_upload = Fabricate(:upload, user: user_out_of_sync)
user_out_of_sync.update!(uploaded_avatar: prev_gravatar_upload)
prev_gravatar_upload.destroy!
user_out_of_sync.update!(uploaded_avatar_id: prev_gravatar_upload.id)
user_out_of_sync.user_avatar.update!(
custom_upload: custom_upload2,
@ -38,5 +39,6 @@ RSpec.describe Jobs::FixOutOfSyncUserUploadedAvatar do
expect(user_without_uploaded_avatar.reload.uploaded_avatar)
.to eq(nil)
end
end