summaryrefslogtreecommitdiff
path: root/spec/workers/new_note_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/new_note_worker_spec.rb')
-rw-r--r--spec/workers/new_note_worker_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/new_note_worker_spec.rb b/spec/workers/new_note_worker_spec.rb
index ae62237960a..387a0958d6b 100644
--- a/spec/workers/new_note_worker_spec.rb
+++ b/spec/workers/new_note_worker_spec.rb
@@ -24,11 +24,11 @@ describe NewNoteWorker do
end
context 'when Note not found' do
- let(:unexistent_note_id) { 999 }
+ let(:unexistent_note_id) { non_existing_record_id }
it 'logs NewNoteWorker process skipping' do
expect(Rails.logger).to receive(:error)
- .with("NewNoteWorker: couldn't find note with ID=999, skipping job")
+ .with("NewNoteWorker: couldn't find note with ID=#{unexistent_note_id}, skipping job")
described_class.new.perform(unexistent_note_id)
end