mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-02-17 04:01:29 -05:00
FIX the build
This commit is contained in:
parent
054ae8bc13
commit
d7f8146a17
2 changed files with 3 additions and 3 deletions
|
@ -66,9 +66,9 @@ describe Admin::BackupsController do
|
|||
describe ".create" do
|
||||
|
||||
it "starts a backup" do
|
||||
BackupRestore.expects(:backup!).with(@admin.id, true)
|
||||
BackupRestore.expects(:backup!).with(@admin.id, { publish_to_message_bus: true, with_uploads: false })
|
||||
|
||||
xhr :post, :create
|
||||
xhr :post, :create, { with_uploads: false }
|
||||
|
||||
response.should be_success
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ describe Jobs::CreateBackup do
|
|||
|
||||
it "calls `backup!` when the daily backups are enabled" do
|
||||
SiteSetting.stubs(:backup_daily?).returns(true)
|
||||
BackupRestore.expects(:backup!).with(Discourse.system_user.id, false).once
|
||||
BackupRestore.expects(:backup!).with(Discourse.system_user.id, { publish_to_message_bus: false }).once
|
||||
Jobs::CreateBackup.new.execute({})
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue