mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
Log site customization changes. Use a modal to show staff action log details for site customizations.
This commit is contained in:
@ -34,6 +34,11 @@ describe Admin::SiteCustomizationsController do
|
||||
xhr :post, :create, site_customization: {name: 'my test name'}
|
||||
::JSON.parse(response.body).should be_present
|
||||
end
|
||||
|
||||
it 'logs the change' do
|
||||
StaffActionLogger.any_instance.expects(:log_site_customization_change).once
|
||||
xhr :post, :create, site_customization: {name: 'my test name'}
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user