From a29a142b44b5e867751aaa780a51b3780f9175b9 Mon Sep 17 00:00:00 2001 From: tamsin johnson Date: Thu, 27 Apr 2023 13:52:15 -0700 Subject: [PATCH] splatify arguments from AttachFilesToWorkJob spec --- spec/jobs/attach_files_to_work_job_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/jobs/attach_files_to_work_job_spec.rb b/spec/jobs/attach_files_to_work_job_spec.rb index b203ab42ae..38c754b4dc 100644 --- a/spec/jobs/attach_files_to_work_job_spec.rb +++ b/spec/jobs/attach_files_to_work_job_spec.rb @@ -93,7 +93,7 @@ it "overrides the work's visibility", perform_enqueued: [described_class, IngestJob] do expect(CharacterizeJob).to receive(:perform_later).twice - described_class.perform_now(generic_work, [uploaded_file1, uploaded_file2], attributes) + described_class.perform_now(generic_work, [uploaded_file1, uploaded_file2], **attributes) generic_work.reload expect(generic_work.file_sets.count).to eq 2 expect(generic_work.file_sets.find { |fs| fs.label == uploaded_file1.file.filename }.visibility).to eq 'open'