fix the build

This commit is contained in:
Régis Hanol 2015-08-27 22:46:30 +02:00
parent 7de03f837e
commit 1a82a59f47
1 changed files with 4 additions and 4 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, { 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