From d30352ccaad9a0aa845b57094a980f5b09583aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Mon, 5 Jul 2021 16:26:32 +0200 Subject: [PATCH] Use admin user in backup spec --- spec/workers/backup_job_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/workers/backup_job_spec.rb b/spec/workers/backup_job_spec.rb index 03e1c86713..3af5c10139 100644 --- a/spec/workers/backup_job_spec.rb +++ b/spec/workers/backup_job_spec.rb @@ -59,7 +59,7 @@ describe BackupJob, type: :model do let(:arguments) { [{ backup: backup, user: user, **opts }] } - let(:user) { FactoryBot.create :user } + let(:user) { FactoryBot.create :admin } before do previous_backup; backup; status # create