mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 00:19:36 +08:00
FEATURE: Allow Forums to disable the Backups feature
This commit is contained in:
@ -7,6 +7,14 @@ RSpec.describe Admin::BackupsController do
|
||||
sign_in(admin)
|
||||
end
|
||||
|
||||
describe "#index" do
|
||||
it "raises an error when backups are disabled" do
|
||||
SiteSetting.enable_backups = false
|
||||
get "/admin/backups.json"
|
||||
expect(response).not_to be_success
|
||||
end
|
||||
end
|
||||
|
||||
describe '#rollback' do
|
||||
it 'should rollback the restore' do
|
||||
BackupRestore.expects(:rollback!)
|
||||
|
Reference in New Issue
Block a user