From 1a82a59f47fe035d6f0f6c89dd307ab7a3557bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 27 Aug 2015 22:46:30 +0200 Subject: [PATCH] fix the build --- spec/controllers/admin/backups_controller_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/controllers/admin/backups_controller_spec.rb b/spec/controllers/admin/backups_controller_spec.rb index 4faeef1ea75..a16efe26070 100644 --- a/spec/controllers/admin/backups_controller_spec.rb +++ b/spec/controllers/admin/backups_controller_spec.rb @@ -66,9 +66,9 @@ describe Admin::BackupsController do describe ".create" do it "starts a backup" do - BackupRestore.expects(:backup!).with(@admin.id, { publish_to_message_bus: true, with_uploads: false }) + BackupRestore.expects(:backup!).with(@admin.id, publish_to_message_bus: true, with_uploads: false, client_id: "foo") - xhr :post, :create, { with_uploads: false } + xhr :post, :create, with_uploads: false, client_id: "foo" expect(response).to be_success end @@ -151,9 +151,9 @@ describe Admin::BackupsController do describe ".restore" do it "starts a restore" do - BackupRestore.expects(:restore!).with(@admin.id, backup_filename, true) + BackupRestore.expects(:restore!).with(@admin.id, filename: backup_filename, publish_to_message_bus: true, client_id: "foo") - xhr :post, :restore, id: backup_filename + xhr :post, :restore, id: backup_filename, client_id: "foo" expect(response).to be_success end