FEATURE: Allow Forums to disable the Backups feature

This commit is contained in:
Robin Ward
2017-12-21 15:21:28 -05:00
parent 9a514e6a26
commit 69a90f31fb
7 changed files with 23 additions and 3 deletions

View File

@ -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!)