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:
parent
dcd60dcc8f
commit
2d48caffdf
4 changed files with 9 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue