2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FIX: be more lenient when deleting a custom emoji

This commit is contained in:
Régis Hanol 2017-11-20 23:50:23 +01:00
parent dcd60dcc8f
commit 2d48caffdf
4 changed files with 9 additions and 15 deletions

View file

@ -67,7 +67,7 @@ RSpec.describe Admin::EmojisController do
expect do
delete "/admin/customize/emojis/#{custom_emoji.name}.json",
params: { name: 'test' }
end.to change { Upload.count }.by(-1).and change { CustomEmoji.count }.by(-1)
end.to change { CustomEmoji.count }.by(-1)
end
end
end