mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
correct invalid spec
This commit is contained in:
parent
e1975e293f
commit
1866a8e8da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user