FIX the build

This commit is contained in:
Régis Hanol 2014-08-20 19:20:29 +02:00
parent 054ae8bc13
commit d7f8146a17
2 changed files with 3 additions and 3 deletions

View file

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

View file

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