Skip to content

Commit

Permalink
splatify arguments from AttachFilesToWorkJob spec
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsin johnson committed Apr 27, 2023
1 parent c06c491 commit a29a142
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/jobs/attach_files_to_work_job_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit a29a142

Please sign in to comment.