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