mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
FIX: be more lenient when deleting a custom emoji
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user